📄 define.h
字号:
#ifndef define_h_
#define define_h_
#define GRID_NUM 19 //棋盘行数
#define GRID_COUNT 361 //可放棋子总数
#define BLACK 0 //黑棋
#define WHITE 1 //白棋
#define NOSTONE 0xff //无棋
//点(x,y)是否在棋盘内
#define IsValidPos(x,y) ((x>=0&&x<GRID_NUM )&&(y>=0&&y<GRID_NUM))
//棋子位置
typedef struct _stoneposition
{
char x;
char y;
}STONEPOS;
//走法
typedef struct _stonemove
{
STONEPOS StonePos[2]; //棋子位置
int Score; //走法的分数
} STONEMOVE;
typedef struct _incdec
{
int count; //增加或减少了多少个这样的线
int id[924]; //这些线的id
bool containLive; //增加或减少的这些线中,是否包含活棋
} INCDEC;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -