X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=b4096ebad3559edc4dad28a99091e1365bad910e;hp=aa27ec2b02eec827a5bb7b5b7092d2043044d041;hb=fae57273b20468f534cce5843152a21214b5da05;hpb=c4c2e08f0d71c8e8f0bdfcb988a42b33243fd2ca diff --git a/src/search.cpp b/src/search.cpp index aa27ec2b..b4096eba 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -935,8 +935,7 @@ 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 < 4 - && (lmrDepth < 3 || ((ss - 1)->statScore > 0 && !PvNode)) + if ( lmrDepth < 3 + ((ss-1)->statScore > 0) && (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold && (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold) continue;