From: Taras Vuk <117687515+TarasVuk@users.noreply.github.com> Date: Sat, 7 Oct 2023 21:25:34 +0000 (+0200) Subject: Skip futility pruning if ttMove has bad history X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=7a4de96159f76f2465d474d76e08a1c8ca3383b8 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 https://github.com/official-stockfish/Stockfish/pull/4825 bench: 1246560 --- diff --git a/AUTHORS b/AUTHORS index b1e82806..d7b64b62 100644 --- 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 diff --git a/src/search.cpp b/src/search.cpp index 69d8decf..85106513 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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)