Skip to content

Commit 8afec41

Browse files
committed
fixed comments
1 parent de4a3c4 commit 8afec41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timeman.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)