diff -r 9cb41383540f -r 231a79d93c0c src/chess/rules.h --- a/src/chess/rules.h Sat Apr 04 13:25:47 2026 +0200 +++ b/src/chess/rules.h Thu Apr 16 19:29:11 2026 +0200 @@ -231,6 +231,18 @@ */ void apply_move(GameState *gamestate, Move *move); +/** + * Returns the remaining time on the clock for the specified + * half-move number. + * + * @param gameinfo the information about the game + * @param gamestate the current game state + * @param move_number the half-move that is now going to be played + * @return the remaining time - if time control is disabled, this function + * always returns zero + */ +uint16_t remaining_movetime2(GameInfo *gameinfo, GameState *gamestate, + unsigned move_number); /** * Returns the remaining time on the clock for the specified player.