From: VoyagerOne Date: Wed, 25 Jul 2018 11:49:35 +0000 (-0400) Subject: CounterMove History Pruning Tweak X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=6e36860554c735775b93f7622806cea90f078480;hp=bb56779cb6e46418783e4253e424d397921335d7 CounterMove History Pruning Tweak STC: (Yellow) LLR: -2.96 (-2.94,2.94) [0.00,5.00] Total: 40124 W: 8817 L: 8751 D: 22556 http://tests.stockfishchess.org/tests/view/5b5690180ebc5902bdb85c8a LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 21599 W: 3811 L: 3599 D: 14189 http://tests.stockfishchess.org/tests/view/5b5757010ebc5902bdb86b1f Closes https://github.com/official-stockfish/Stockfish/pull/1697 Bench: 4794161 --- diff --git a/src/search.cpp b/src/search.cpp index af7a5c13..325278fb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -935,7 +935,8 @@ moves_loop: // When in check, search starts from here int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), DEPTH_ZERO) / ONE_PLY; // Countermoves based pruning (~20 Elo) - if ( lmrDepth < 3 + if ( lmrDepth < 4 + && (lmrDepth < 3 || ((ss - 1)->statScore > 0 && !PvNode)) && (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold && (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold) continue;