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

📄 core.h

📁 vc2005编写黑白棋
💻 H
字号:
#include<string>
using namespace std;
struct TPos
{
	int x;
	int y;
};
/*提供的接口服务
1 通知开始
2 通知dll名称
3 通知结束
4 通知清理
*/
class CBad
{
public:
	int iData[8][8];//当前棋局
	int iChessRecord[64][8][8];//记录棋盘数据
	string iBlackName;//黑方名字
	string iWhiteName;//白方名字
	int  iFirst;//谁先
	int  iWinner;//谁赢
	int iMode;//模式,0 比赛;1 录像
	int iTotalStep;
	int iStep;
	HWND hDlg;
	int iTurn;
	bool WalkFlag;
	HANDLE hThread;
	HANDLE hThreadUI;
	HINSTANCE hInst1;
	HINSTANCE hInst2;
	int iTimeLimit;
	bool bBlackLoad;
	bool bWhiteLoad;

	TPos iPos;
public:
	CBad();
	~CBad();
	bool LoadSuccess();
	void Exit();
	void Clear();
	bool SelecetDllName(string dll,int mark);
	bool JudgeEnd(int mark) const;
	bool SetPos(int mark) ;
	bool IsValidPos(TPos pos,int mark) const;
	int Count(int num);
	bool GameBegin();
public:
	void Wait();
	bool SetAMap();
	bool WriteFile();
public:

};

⌨️ 快捷键说明

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