Skip to content

Commit

Permalink
Refine futility pruning for parent nodes
Browse files Browse the repository at this point in the history
This patch is a result of refining of tuning vondele did after
new net passed and some hand-made values adjustements - excluding
changes in other pruning heuristics and rounding value of history
divisor to the nearest power of 2.

With this patch futility pruning becomes more aggressive and
history influence on it is doubled again.

passed STC
https://tests.stockfishchess.org/tests/view/61a2c4c1a26505c2278c150d
LLR: 2.94 (-2.94,2.94) <0.00,2.50>
Total: 33848 W: 8841 L: 8574 D: 16433
Ptnml(0-2): 100, 3745, 8988, 3970, 121

passed LTC
https://tests.stockfishchess.org/tests/view/61a327ffa26505c2278c26d9
LLR: 2.94 (-2.94,2.94) <0.50,3.00>
Total: 22272 W: 5856 L: 5614 D: 10802
Ptnml(0-2): 12, 2230, 6412, 2468, 14

closes #3814

bench 6302543
  • Loading branch information
Vizvezdenec authored and vondele committed Nov 28, 2021
1 parent 8bb5a43 commit af050e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ namespace {
// Futility pruning: parent node (~5 Elo)
if ( !ss->inCheck
&& lmrDepth < 8
&& ss->staticEval + 172 + 145 * lmrDepth + history / 128 <= alpha)
&& ss->staticEval + 142 + 139 * lmrDepth + history / 64 <= alpha)
continue;

// Prune moves with negative SEE (~20 Elo)
Expand Down

1 comment on commit af050e5

@SwiftSnips
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up as something that can be corrected in a future patch... theres 18 white spaces at the end of line 1066, the patch that was introduced before this one after "history += thisThread->mainHistory[us][from_to(move)];".

Please sign in to comment.