defs14.h

来自「象棋」· C头文件 代码 · 共 47 行

H
47
字号
#define	MAX_PLY			4
#define	VERSION			"1.4"

#define	SIZE_X			9
#define	SIZE_Y			10
#define BOARD_SIZE		SIZE_X*SIZE_Y

#define MOVE_STACK		4096
#define HIST_STACK		50

#define EMPTY			7
#define REDSIDE			0
#define BLACKSIDE		1

#define PAWN			0
#define BISHOP			1
#define ELEPHAN			2
#define KNIGHT			3
#define CANNON			4
#define ROOK			5
#define KING			6

#define	INFINITY		20000
#define	NORMAL			0
#define	SELECT			1
#define	MOVETIME		CLOCKS_PER_SEC*6

typedef struct {
	short from, dest;
} move;

typedef struct {
	move 	m;
	int prior;
} gen_rec;

typedef struct {
	move m;
	int capture;
} hist_rec;

/* Book data will be saved in single linked list */
typedef struct node {
	short line[100], len;
	struct node* next;
};

⌨️ 快捷键说明

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