From a90fc4c877b39769ebdf227b3124008ec394ad3d Mon Sep 17 00:00:00 2001 From: Stefan Geschwentner Date: Fri, 11 Nov 2016 09:46:31 +0100 Subject: [PATCH] Non-quiet pruning tweak Count in the difference of static evaluation and alpha for pruning threshold. STC: LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 16885 W: 3061 L: 2866 D: 10958 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 33566 W: 4428 L: 4202 D: 24936 Bench: 5513149 --- src/search.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 6699991a..a74e3f25 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -944,10 +944,15 @@ moves_loop: // When in check search starts from here && !pos.see_ge(move, Value(-35 * lmrDepth * lmrDepth))) continue; } - else if ( depth < 7 * ONE_PLY - && !extension - && !pos.see_ge(move, Value(-35 * depth / ONE_PLY * depth / ONE_PLY))) + else if (depth < 7 * ONE_PLY && !extension) + { + Value v = Value(-35 * depth / ONE_PLY * depth / ONE_PLY); + if (ss->staticEval != VALUE_NONE) + v += ss->staticEval - alpha - 200; + + if (!pos.see_ge(move, v)) continue; + } } // Speculative prefetch as early as possible -- 2.39.2