]> git.sesse.net Git - stockfish/commitdiff
Simplification for countermoves based pruning
authorVizvezdenec <Vizvezdenec@gmail.com>
Fri, 14 May 2021 21:55:45 +0000 (00:55 +0300)
committerStéphane Nicolet <cassio@free.fr>
Sat, 15 May 2021 08:29:39 +0000 (10:29 +0200)
Simplify away two extra conditions in countermoves based pruning.
These conditions (both of them) were introduced quite a long time ago
via speculative LTCs and seem to no longer bring any benefit.

passed STC
https://tests.stockfishchess.org/tests/view/609e81f35085663412d08f31
LLR: 2.96 (-2.94,2.94) <-2.50,0.50>
Total: 28488 W: 2487 L: 2382 D: 23619
Ptnml(0-2): 87, 1919, 10123, 2032, 83

passed LTC
https://tests.stockfishchess.org/tests/view/609e9c085085663412d08f59
LLR: 2.95 (-2.94,2.94) <-2.50,0.50>
Total: 33176 W: 1219 L: 1155 D: 30802
Ptnml(0-2): 13, 1036, 14423, 1106, 10

closes https://github.com/official-stockfish/Stockfish/pull/3468

Bench: 4749514

src/search.cpp

index e03016b61d9c2edd6bb7167b9a5999e3efb5c6c5..bf6ba6c4cd6589f48865570f11a85ff93b891805 100644 (file)
@@ -1026,7 +1026,7 @@ moves_loop: // When in check, search starts from here
           else
           {
               // Countermoves based pruning (~20 Elo)
-              if (   lmrDepth < 4 + ((ss-1)->statScore > 0 || (ss-1)->moveCount == 1)
+              if (   lmrDepth < 4
                   && (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold
                   && (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold)
                   continue;