Do more aggressive pruning for some node types

This patch allows more aggressive futility/see based pruning for PV nodes with low delta and non-pv nodes.

Fixes some white space issues.

Passed STC
https://tests.stockfishchess.org/tests/view/61a5ed33d16c530b5dcc27cc
LLR: 2.95 (-2.94,2.94) <0.00,2.50>
Total: 182088 W: 47121 L: 46584 D: 88383
Ptnml(0-2): 551, 20687, 48037, 21212, 557

Passed LTC
https://tests.stockfishchess.org/tests/view/61a74dfdbd5c4360bcded0ac
LLR: 2.94 (-2.94,2.94) <0.50,3.00>
Total: 87136 W: 22494 L: 22103 D: 42539
Ptnml(0-2): 38, 8918, 25272, 9295, 45

closes https://github.com/official-stockfish/Stockfish/pull/3828
closes https://github.com/official-stockfish/Stockfish/pull/3829

bench 4332259
This commit is contained in:
Michael Chaly
2021-12-02 23:41:23 +03:00
committed by Joost VandeVondele
parent c9977aa0a8
commit e4b7403f12
3 changed files with 7 additions and 5 deletions

View File

@@ -1065,6 +1065,8 @@ moves_loop: // When in check, search starts here
history += thisThread->mainHistory[us][from_to(move)];
lmrDepth = std::max(0, lmrDepth - (beta - alpha < thisThread->rootDelta / 4));
// Futility pruning: parent node (~5 Elo)
if ( !ss->inCheck
&& lmrDepth < 8