Skip to content

Commit

Permalink
Remove second futility pruning depth limit
Browse files Browse the repository at this point in the history
This patch removes futility pruning lmrDepth limit for futility pruning at parent nodes.
Since it's already capped by margin that is a function of lmrDepth there is no need to extra cap it with lmrDepth.

passed STC
https://tests.stockfishchess.org/tests/view/60e9b5dfd1189bed71812777
LLR: 2.97 (-2.94,2.94) <-2.50,0.50>
Total: 14872 W: 1264 L: 1145 D: 12463
Ptnml(0-2): 37, 942, 5369, 1041, 47

passed LTC
https://tests.stockfishchess.org/tests/view/60e9c635d1189bed71812790
LLR: 2.96 (-2.94,2.94) <-2.50,0.50>
Total: 40336 W: 1280 L: 1225 D: 37831
Ptnml(0-2): 24, 1057, 17960, 1094, 33

closes #3612

bench: 5064969
  • Loading branch information
Vizvezdenec authored and vondele committed Jul 13, 2021
1 parent f4986f4 commit dbd7f60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Expand Up @@ -1021,8 +1021,7 @@ namespace {
continue;

// Futility pruning: parent node (~5 Elo)
if ( lmrDepth < 7
&& !ss->inCheck
if ( !ss->inCheck
&& ss->staticEval + 174 + 157 * lmrDepth <= alpha
&& (*contHist[0])[movedPiece][to_sq(move)]
+ (*contHist[1])[movedPiece][to_sq(move)]
Expand Down

0 comments on commit dbd7f60

Please sign in to comment.