Skip to content

Commit 8b4afcf

Browse files
Vizvezdenecvondele
authored andcommitted
Scale child node futility pruning with previous move history.
Idea is to do more futility pruning if previous move has bad histories and less if it has good histories. passed STC https://tests.stockfishchess.org/tests/view/61e3757fbabab931824e0db7 LLR: 2.96 (-2.94,2.94) <0.00,2.50> Total: 156816 W: 42282 L: 41777 D: 72757 Ptnml(0-2): 737, 17775, 40913, 18212, 771 passed LTC https://tests.stockfishchess.org/tests/view/61e43496928632f7813a5535 LLR: 2.95 (-2.94,2.94) <0.50,3.00> Total: 349968 W: 94612 L: 93604 D: 161752 Ptnml(0-2): 300, 35934, 101550, 36858, 342 closes #3903 bench 4720954
1 parent bddd38c commit 8b4afcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/search.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ namespace {
777777
// The depth condition is important for mate finding.
778778
if ( !ss->ttPv
779779
&& depth < 9
780-
&& eval - futility_margin(depth, improving) >= beta
780+
&& eval - futility_margin(depth, improving) - (ss-1)->statScore / 256 >= beta
781+
&& eval >= beta
781782
&& eval < 15000) // 50% larger than VALUE_KNOWN_WIN, but smaller than TB wins.
782783
return eval;
783784

0 commit comments

Comments
 (0)