From e70da0d2eb20cffee505c4e7ef61399de7d3fa16 Mon Sep 17 00:00:00 2001 From: goodkov Date: Wed, 30 Nov 2016 00:43:03 +0400 Subject: [PATCH 1/1] Simplify pruning rule STC: http://tests.stockfishchess.org/tests/view/583df86d0ebc5903140c5481 LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 43283 W: 7761 L: 7678 D: 27844 LTC: http://tests.stockfishchess.org/tests/view/583f42670ebc5903140c5525 LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 56587 W: 7232 L: 7157 D: 42198 bench: 5084980 --- src/search.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 2e4ec5ec..b916264a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -950,9 +950,10 @@ moves_loop: // When in check search starts from here } 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; + Value v = -Value(399 + 35 * depth / ONE_PLY * depth / ONE_PLY); + + if (PvNode) + v += beta - alpha - 1; if (!pos.see_ge(move, v)) continue; -- 2.39.2