📄 ai.h
字号:
// AI.h: interface for the AI class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_AI_H__179FFB02_535E_11D6_B5E1_C53264BD3E08__INCLUDED_)
#define AFX_AI_H__179FFB02_535E_11D6_B5E1_C53264BD3E08__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define FIVE_X 19
#define FIVE_Y 19
#define FIVE_MARGIN 10
#define FIVE_WIDTH 22
#define FIVE_HEIGHT 22
#define FIVE_CURSOR_WIDTH 20
#define FIVE_CURSOR_HEIGHT 20
#define FIVE_NULL 0
#define FIVE_WHITE 1
#define FIVE_BLACK 2
#define FIVE_COMPUTER 10
#define FIVE_HUMAN 11
#define FIVE_NETClient 12
#define FIVE_NETServer 13
class AI
{
//attributes
private:
CWnd* m_pParentWnd;
public:
int m_nboard[FIVE_X][FIVE_Y];
int m_nVals[FIVE_X][FIVE_Y];
int m_nValuesSetting[18];
//implements
public:
AI();
virtual ~AI();
void Think(int nSteps, char nSide);
void Think11(char nSide);
void Think10(char nSide);
void Think09(char nSide);
void Think08(char nSide);
void Think07(char nSide);
void Think06(char nSide);
void Think05(char nSide);
void Think04(char nSide);
void Think03(char nSide);
void Think02(char nSide);
void Think01(char nSide);
void Think00(char nSide);
void SetParentWnd(CWnd *pWnd);
void SetValueSettings(int values[], int n);
void Play(int &x, int &y, int nCurSide);
void BestPos(int &x, int &y);
BOOL IfWin(char nSide);
};
#endif // !defined(AFX_AI_H__179FFB02_535E_11D6_B5E1_C53264BD3E08__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -