67 #define BQUEEN (BLACK|QUEEN) |
67 #define BQUEEN (BLACK|QUEEN) |
68 #define BKING (BLACK|KING) |
68 #define BKING (BLACK|KING) |
69 |
69 |
70 typedef uint8_t Board[8][8]; |
70 typedef uint8_t Board[8][8]; |
71 |
71 |
72 |
|
73 typedef struct { |
72 typedef struct { |
74 uint8_t piece; |
73 uint8_t piece; |
75 uint8_t fromfile; |
74 uint8_t fromfile; |
76 uint8_t fromrow; |
75 uint8_t fromrow; |
77 uint8_t tofile; |
76 uint8_t tofile; |
78 uint8_t torow; |
77 uint8_t torow; |
79 uint8_t promotion; |
78 uint8_t promotion; |
80 struct timespec timestamp; |
79 struct timeval timestamp; |
81 struct timespec movetime; |
80 struct timeval movetime; |
82 _Bool check; |
81 _Bool check; |
83 _Bool capture; |
82 _Bool capture; |
84 } Move; |
83 } Move; |
85 |
84 |
86 typedef struct MoveList MoveList; |
85 typedef struct MoveList MoveList; |