Skip to content

Commit 7a4de96

Browse files
TarasVukvondele
authored andcommitted
Skip futility pruning if ttMove has bad history
Passed STC: LLR: 2.96 (-2.94,2.94) <0.00,2.00> Total: 52416 W: 13465 L: 13128 D: 25823 Ptnml(0-2): 128, 6024, 13604, 6287, 165 https://tests.stockfishchess.org/tests/view/651fadd4ac577114367277bf Passed LTC: LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 87348 W: 22234 L: 21818 D: 43296 Ptnml(0-2): 38, 9240, 24698, 9664, 34 https://tests.stockfishchess.org/tests/view/65201932ac57711436728218 closes #4825 bench: 1246560
1 parent f7fbc68 commit 7a4de96

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ Steinar Gunderson (sesse)
210210
Stéphane Nicolet (snicolet)
211211
Stephen Touset (stouset)
212212
Syine Mineta (MinetaS)
213+
Taras Vuk (TarasVuk)
213214
Thanar2
214215
thaspel
215216
theo77186

src/search.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,10 @@ namespace {
780780
&& depth < 9
781781
&& eval - futility_margin(depth, cutNode && !ss->ttHit, improving) - (ss-1)->statScore / 306 >= beta
782782
&& eval >= beta
783-
&& eval < 24923) // smaller than TB wins
783+
&& eval < 24923 // smaller than TB wins
784+
&& !( !ttCapture
785+
&& ttMove
786+
&& thisThread->mainHistory[us][from_to(ttMove)] < 989))
784787
return eval;
785788

786789
// Step 9. Null move search with verification search (~35 Elo)

0 commit comments

Comments
 (0)