📄 fiverai.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -