⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 board.h

📁 搜索算法部分使用minmax递归
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -