| 86 uint8_t timecontrol; |
86 uint8_t timecontrol; |
| 87 uint16_t time; |
87 uint16_t time; |
| 88 uint16_t addtime; |
88 uint16_t addtime; |
| 89 } GameInfo; |
89 } GameInfo; |
| 90 |
90 |
| |
91 /** The buffer length for player names in GameInfo structures. */ |
| |
92 #define PLAYER_NAME_BUFLEN 32 |
| |
93 |
| 91 typedef struct { |
94 typedef struct { |
| 92 Board board; |
95 Board board; |
| 93 Move* moves; |
96 Move* moves; |
| |
97 /** optional name of the white player */ |
| |
98 char wname[PLAYER_NAME_BUFLEN]; |
| |
99 /** optional name of the black player */ |
| |
100 char bname[PLAYER_NAME_BUFLEN]; |
| 94 /** capacity of the move array */ |
101 /** capacity of the move array */ |
| 95 unsigned movecapacity; |
102 unsigned movecapacity; |
| 96 /** number of (half-)moves (counting BOTH colors) */ |
103 /** number of (half-)moves (counting BOTH colors) */ |
| 97 unsigned int movecount; |
104 unsigned int movecount; |
| 98 /** a premove that shall be evaluated next time it's our turn */ |
105 /** a premove that shall be evaluated next time it's our turn */ |