X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=325278fbc95acab4d559b94ae7a1787d2f8b0b9b;hp=af7a5c13dd643f411e8bf1f94906e8269423f714;hb=6e36860554c735775b93f7622806cea90f078480;hpb=bb56779cb6e46418783e4253e424d397921335d7;ds=sidebyside 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;