src/chess/rules.h

changeset 33
866025982aa9
parent 32
8a0b85303ee8
child 36
ebe0c961e9a6
     1.1 --- a/src/chess/rules.h	Wed Apr 09 09:34:07 2014 +0200
     1.2 +++ b/src/chess/rules.h	Wed Apr 09 11:12:04 2014 +0200
     1.3 @@ -264,5 +264,18 @@
     1.4   */
     1.5  void apply_move(GameState *gamestate, Move *move);
     1.6  
     1.7 +
     1.8 +/**
     1.9 + * Returns the remaining time on the clock for the specified player.
    1.10 + *
    1.11 + * @param gameinfo the information about the game
    1.12 + * @param gamestate the current game state
    1.13 + * @param color either BLACK or WHITE
    1.14 + * @return the remaining time - if time control is disabled, this function
    1.15 + * always returns zero
    1.16 + */
    1.17 +uint16_t remaining_movetime(GameInfo *gameinfo, GameState *gamestate,
    1.18 +        uint8_t color);
    1.19 +
    1.20  #endif	/* RULES_H */
    1.21  

mercurial