board.h

来自「搜索算法部分使用minmax递归」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef BOARD_H
#define BOARD_H
class CBoard {
public:
	enum {SPACE,BLACK,WHITE,ENABLE,ROTATE,DROPBLACK,DROPWHITE,CAN,B2W,W2B};
	int m_Hint,m_Turn;
	CBoard();
	~CBoard();
	void Reset();
	int Get(int x,int y);
	void Drop(int x,int y,int state);
	void Change(int x,int y,int state);
	void Draw(CDC* pDC,int height,int num);
	bool SetState(int x,int y,int state);
	void Clean();
private:
	int m_State[8][8];
	int oldX,oldY;
	CString m_Drop[3],m_Color[3],m_HintName[3],m_B2W[10],m_W2B[10],*m_Rotate[3];
	CDC *chessDC[W2B+1];
//	CBitmap black,white,dropBlack,dropWhite,canBlack,canWhite;
	friend class COthelloDoc;
};
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?