Skip to content

Commit

Permalink
Reduce history bonus if evaluation is high.
Browse files Browse the repository at this point in the history
  • Loading branch information
petur committed Jan 6, 2024
1 parent f626862 commit 80f5488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seawall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3573,7 +3573,7 @@ std::pair<int, Move> Search::search(bool pv, int ply, int depth, int alpha, int
if (stack[ply].prev_move)
counter_move = best;
}
int inc = 45 * (depth - 1) + 686;
int inc = 45 * (depth - 1) + 686 - std::clamp(eval - beta - 50, 0, 600);
MoveHistory* hist = history[position.next];
for (int i = gen.index - 1; i >= 0; --i)
{
Expand Down

0 comments on commit 80f5488

Please sign in to comment.