Skip to content

Commit

Permalink
Simplify opponent movecount reduction
Browse files Browse the repository at this point in the history
This removes the reduction decrease that occured
when the previous ply had a movecount greater than
7.
  • Loading branch information
gahtan-syarif authored and PikaCat-OuO committed Feb 10, 2024
1 parent 850b28b commit e4d61f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,10 +997,6 @@ Value Search::Worker::search(
if (ss->ttPv)
r -= 1 + (ttValue > alpha) + (ttValue > beta && tte->depth() >= depth);

// Decrease reduction if opponent's move count is high (~1 Elo)
if ((ss - 1)->moveCount > 7)
r--;

// Increase reduction for cut nodes (~4 Elo)
if (cutNode)
r += 2 - (tte->depth() >= depth && ss->ttPv);
Expand Down

0 comments on commit e4d61f8

Please sign in to comment.