Skip to content

Commit

Permalink
Tweak formula for pruning moves losing material
Browse files Browse the repository at this point in the history
Simplify the "Prune moves with negative SEE" formula,
by removing one multiplication and subtraction operation.

Passed STC:
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 214272 W: 54596 L: 54572 D: 105104
Ptnml(0-2): 741, 25160, 55320, 25164, 751
https://tests.stockfishchess.org/tests/view/64c430d1dc56e1650abbdbf6

Passed LTC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 238380 W: 60600 L: 60601 D: 117179
Ptnml(0-2): 132, 26069, 66791, 26064, 134
https://tests.stockfishchess.org/tests/view/64c81f155b17f7c21c0cee2b

closes #4721

bench: 1655337
  • Loading branch information
FauziAkram authored and snicolet committed Aug 6, 2023
1 parent 0ad9b51 commit a26f8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -1037,7 +1037,7 @@ namespace {
lmrDepth = std::max(lmrDepth, 0);

// Prune moves with negative SEE (~4 Elo)
if (!pos.see_ge(move, Value(-27 * lmrDepth * lmrDepth - 16 * lmrDepth)))
if (!pos.see_ge(move, Value(-31 * lmrDepth * lmrDepth)))
continue;
}
}
Expand Down

0 comments on commit a26f8d3

Please sign in to comment.