30
30
typedef gushort Square;
31
31
typedef gchar Piece;
34
GAME_NONE, /* No game */
35
GAME_PAUSED, /* Game is paused */
36
GAME_PROGRESS, /* Game is in progress */
37
GAME_ABORTED, /* Game was aborted */
38
GAME_WHITE, /* White won the game */
39
GAME_BLACK, /* Black won the game */
33
43
/* Various empty defines */
36
45
/* Generated movelist */
37
46
#define AB_ZUGL 512 /* Length of list generated moves */
38
47
#define AB_ZUG_S 256 /* Beginning of generated capture moves*/
41
#define WHITE 1 /* White to Move */
42
#define BLACK 129 /* Black to move */
50
#define NONE 0 /* No one */
51
#define WHITE 1 /* White */
52
#define BLACK 129 /* Black */
44
54
/* Notation types */
45
55
#define SAN 0 /* Standard algebraic notation */
46
56
#define COORD 1 /* Coordinate notation */
49
#define GAME_NONE 0 /* No game */
50
#define GAME_PAUSED 1 /* Game is paused */
51
#define GAME_PROGRESS 2 /* Game is in progress */
52
#define GAME_ABORTED 3 /* Game was aborted */
53
#define GAME_WHITE 4 /* White won the game */
54
#define GAME_BLACK 5 /* Black won the game */
55
#define GAME_DRAW 6 /* Draw */
57
/* Board window modes */
58
#define COMPUTER_BLACK 1
59
#define COMPUTER_WHITE 2
64
58
#define PIECE_SIZE 40
66
60
#define OL 9 /********************************************/
103
97
#define WPIECE(c) ((c) & 32) /* white piece? */
104
98
#define BPIECE(c) ((c) & 64) /* black piece? */
100
#define IS_PROMOTION(c) ((c) & 128) /* promotion encoded? */
106
102
/****************************************************************/
108
104
/****************************************************************/