File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,15 @@ void TimeManagement::init(Search::LimitsType& limits,
8181 limits.npmsec = npmsec;
8282 }
8383
84- // Maximum move horizon of 50 moves
84+ // Maximum and default move horizon of 50 moves
8585 int mtg = limits.movestogo ? std::min (limits.movestogo , 50 ) : 50 ;
8686
8787 // Make sure timeLeft is > 0 since we use it as a divisor
88- // If there is a healthy increment and low mtg, timeLeft can exceed actual available
8988 double timeLeft =
9089 std::max (limits.time [us], limits.time [us] + limits.inc [us] * (mtg - 1 ) - moveOverhead * mtg);
9190
9291 // x basetime (+ z increment)
92+ // If there is a healthy increment and low mtg, timeLeft can exceed actual available
9393 // game time for the current move, so also cap to 20% of available game time.
9494 if (limits.movestogo == 0 )
9595 {
You can’t perform that action at this time.
0 commit comments