Skip to content

Commit

Permalink
Keep history bonus increasing with depth after the maximum, even if i…
Browse files Browse the repository at this point in the history
…t's 5 by 5
  • Loading branch information
eduherminio committed Dec 8, 2023
1 parent abb1743 commit 1734153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lynx/EvaluationConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -967,8 +967,8 @@ static EvaluationConstants()
}

HistoryBonus[searchDepth] = Math.Min(
Configuration.EngineSettings.History_MaxMoveRawBonus,
(4 * searchDepth * searchDepth) + (120 * searchDepth) - 120); // Sirius, originally from Berserk
Configuration.EngineSettings.History_MaxMoveRawBonus + (5 * searchDepth), // Making sure it still increases after reaching the threshold
(4 * searchDepth * searchDepth) + (120 * searchDepth) - 120); // Formula suggested by Sirius author, originally from Berserk
}
}

Expand Down

0 comments on commit 1734153

Please sign in to comment.