| 104 bool checkmate; |
104 bool checkmate; |
| 105 bool capture; |
105 bool capture; |
| 106 } Move; |
106 } Move; |
| 107 |
107 |
| 108 typedef struct { |
108 typedef struct { |
| 109 uint8_t servercolor; |
109 Color servercolor; |
| 110 /** 1: play with timecontrol, 0: play without time control */ |
110 /** play with timecontrol? */ |
| 111 uint8_t timecontrol; |
111 bool timecontrol; |
| 112 /** If timecontrol is 1, initial clock time in seconds */ |
112 /** If timecontrol is true, initial clock time in seconds */ |
| 113 uint16_t time; |
113 uint16_t time; |
| 114 /** If timecontrol is 1, time added per move in seconds */ |
114 /** If timecontrol is true, time added per move in seconds */ |
| 115 uint16_t addtime; |
115 uint16_t addtime; |
| 116 /** If timecontrol is 1, delay before the clock starts ticking down */ |
116 /** If timecontrol is true, delay before the clock starts ticking down */ |
| 117 uint16_t delay; |
117 uint16_t delay; |
| 118 } GameInfo; |
118 } GameInfo; |
| 119 |
119 |
| 120 /** The buffer length for player names in GameState structures. */ |
120 /** The buffer length for player names in GameState structures. */ |
| 121 #define PLAYER_NAME_BUFLEN 32 |
121 #define PLAYER_NAME_BUFLEN 32 |