]> git.sesse.net Git - stockfish/commitdiff
Skip futility pruning if ttMove has bad history
authorTaras Vuk <117687515+TarasVuk@users.noreply.github.com>
Sat, 7 Oct 2023 21:25:34 +0000 (23:25 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 8 Oct 2023 05:56:07 +0000 (07:56 +0200)
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 https://github.com/official-stockfish/Stockfish/pull/4825

bench: 1246560

AUTHORS
src/search.cpp

diff --git a/AUTHORS b/AUTHORS
index b1e8280664409ddd83f7cb3ad4d61060ab76583a..d7b64b62e8c8f32e24b68d2b85ab6815a942af45 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -210,6 +210,7 @@ Steinar Gunderson (sesse)
 Stéphane Nicolet (snicolet)
 Stephen Touset (stouset)
 Syine Mineta (MinetaS)
+Taras Vuk (TarasVuk)
 Thanar2
 thaspel
 theo77186
index 69d8decff3675d9412529bae3fe6593c28d90370..8510651360c07bd5f3c8540331749307d47e810a 100644 (file)
@@ -780,7 +780,10 @@ namespace {
         &&  depth < 9
         &&  eval - futility_margin(depth, cutNode && !ss->ttHit, improving) - (ss-1)->statScore / 306 >= beta
         &&  eval >= beta
-        &&  eval < 24923) // smaller than TB wins
+        &&  eval < 24923 // smaller than TB wins
+        && !(  !ttCapture
+             && ttMove
+             && thisThread->mainHistory[us][from_to(ttMove)] < 989))
         return eval;
 
     // Step 9. Null move search with verification search (~35 Elo)