#define GRID_NUM 11 //棋盘行数,其中1..9为棋的坐标,其他为边界
#define GRID_COUNT 81 //可放棋子总数
#define BLACK 1 //黑棋 黑白棋转换时,可对求异或
#define WHITE 2 //白棋
#define BORDER 3 //边界
#define NOSTONE 0 //空子无棋
#define MCMAX 10000 //蒙特卡洛次数
typedef struct _stoneposition
{
char x;
char y;
int score;
}SMove; //招法
char board[GRID_NUM][GRID_NUM]; //棋盘表示
char chessColor; //自己棋的颜色
SMove bestMove; //最优棋
1