From: goodkov Date: Tue, 29 Nov 2016 20:43:03 +0000 (+0400) Subject: Simplify pruning rule X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e70da0d2eb20cffee505c4e7ef61399de7d3fa16 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 --- 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;