Skip to content

Commit

Permalink
Optimizing take 5
Browse files Browse the repository at this point in the history
  • Loading branch information
coolchess123 committed Jan 14, 2025
1 parent 96e288f commit 36e94b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void TimeManagement::init(Search::LimitsType& limits,
// If there is a healthy increment, timeLeft can exceed the actual available
// game time for the current move, so also cap to a percentage of available game time.
// Define baseConstant outside the if-else to avoid duplication
double baseConstant = std::min(0.35 + 0.1 * (ply / 10), 0.88);
double baseConstant = std::min(0.35 + 0.05 * (ply / 10), 0.88);

if (limits.movestogo == 0)
{
Expand Down

0 comments on commit 36e94b4

Please sign in to comment.