fiverai.h

来自「有关win32应用程序编程和wince应用程序编程的很全面」· C头文件 代码 · 共 47 行

H
47
字号
// FiverAI.h: interface for the CFiverAI class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_FIVERAI_H__F084F732_691E_4BC0_BC08_27B41108713B__INCLUDED_)#define AFX_FIVERAI_H__F084F732_691E_4BC0_BC08_27B41108713B__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000#include <vector>struct ChessPositionStruct {	unsigned char nx;	unsigned char ny;	bool style;};class CFiverAI  {public:	CFiverAI();	virtual ~CFiverAI();	bool IsWinner(bool style,int nx,int ny);	void NewGame();	bool PutChess(int nx,int ny);	bool back(ChessPositionStruct &last);	bool IsPlaying();	int  GetStep();	bool GetRecord(ChessPositionStruct &ChessPosition);	int map[15][15];	struct winstruct {		int winner; //0 没有获胜 1 白 2 黑		int nx1;    //五连的坐标		int nx2;		int ny1;		int ny2;	} twinner;	ChessPositionStruct ChessRecord[225];	int step;//步数	bool style;//color of chessman true for black and false for white	int RecordStep;//棋谱的步数private:	bool IsPlay;};#endif // !defined(AFX_FIVERAI_H__F084F732_691E_4BC0_BC08_27B41108713B__INCLUDED_)

⌨️ 快捷键说明

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