src/calctime.cpp
// try to keep this amt of time in reserve
try to keep this amt of time in reserve
try to keep this amt of time in reserve
int calcTimeLimit(int moves, float minutes, int incr,
int time_left, int opp_time, bool ponderHit, int trace)
{
   int moves_in_game = gameMoves->num_moves()/2;  
   int moves_left;
   if (moves == 0) {
      moves_left = 0;
   } else {
      moves_left = moves-(moves_in_game % moves);
   }
   return calcTimeLimit(moves_left,incr,time_left,opp_time,ponderHit,trace);
}
int calcTimeLimit ( int moves , float minutes , int incr , int time_left , int opp_time , bool ponderHit , int trace ) { int moves_in_game = gameMoves -> num_moves ( ) / 2 ; int moves_left ; if ( moves == 0 ) { moves_left = 0 ; } else { moves_left = moves - ( moves_in_game % moves ) ; } return calcTimeLimit ( moves_left , incr , time_left , opp_time , ponderHit , trace ) ; }
try to keep this amt of time in reserve
try to keep this amt of time in reserve
// full moves, not half-moves