Skip to content

Commit

Permalink
Revert "Mix alpha and statScore for reduction"
Browse files Browse the repository at this point in the history
This reverts commit 8bab097.

In this form the patch reduces mate finding effectiveness, as the large alpha value has negative influence on the reductions.

see also #4183

Bench: 4114228
  • Loading branch information
vondele committed Oct 5, 2022
1 parent 8bab097 commit da937e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,9 @@ namespace {
// The depth condition is important for mate finding.
if ( !ss->ttPv
&& depth < 8
&& eval - futility_margin(depth, improving) - (ss-1)->statScore / 301 >= beta
&& eval - futility_margin(depth, improving) - (ss-1)->statScore / 303 >= beta
&& eval >= beta
&& eval < 28692) // larger than VALUE_KNOWN_WIN, but smaller than TB wins
&& eval < 28031) // larger than VALUE_KNOWN_WIN, but smaller than TB wins
return eval;

// Step 9. Null move search with verification search (~22 Elo)
Expand Down Expand Up @@ -1179,7 +1179,7 @@ namespace {
- 4433;

// Decrease/increase reduction for moves with a good/bad history (~30 Elo)
r -= (ss->statScore + 5 * alpha) / 15448;
r -= ss->statScore / 13628;

// In general we want to cap the LMR depth search at newDepth, but when
// reduction is negative, we allow this move a limited search extension
Expand Down

0 comments on commit da937e2

Please sign in to comment.