--- a/src/chess/rules.h Wed Apr 09 09:34:07 2014 +0200 +++ b/src/chess/rules.h Wed Apr 09 11:12:04 2014 +0200 @@ -264,5 +264,18 @@ */ void apply_move(GameState *gamestate, Move *move); + +/** + * Returns the remaining time on the clock for the specified player. + * + * @param gameinfo the information about the game + * @param gamestate the current game state + * @param color either BLACK or WHITE + * @return the remaining time - if time control is disabled, this function + * always returns zero + */ +uint16_t remaining_movetime(GameInfo *gameinfo, GameState *gamestate, + uint8_t color); + #endif /* RULES_H */