src/chess/rules.h

changeset 33
866025982aa9
parent 32
8a0b85303ee8
child 36
ebe0c961e9a6
equal deleted inserted replaced
32:8a0b85303ee8 33:866025982aa9
262 * @param gamestate the current game state 262 * @param gamestate the current game state
263 * @param move the move to apply 263 * @param move the move to apply
264 */ 264 */
265 void apply_move(GameState *gamestate, Move *move); 265 void apply_move(GameState *gamestate, Move *move);
266 266
267
268 /**
269 * Returns the remaining time on the clock for the specified player.
270 *
271 * @param gameinfo the information about the game
272 * @param gamestate the current game state
273 * @param color either BLACK or WHITE
274 * @return the remaining time - if time control is disabled, this function
275 * always returns zero
276 */
277 uint16_t remaining_movetime(GameInfo *gameinfo, GameState *gamestate,
278 uint8_t color);
279
267 #endif /* RULES_H */ 280 #endif /* RULES_H */
268 281

mercurial