X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c589f2369c2cf72d256de89734cbae52d0d1c185;hp=66843515e4ddc332ddae523814fd52099d399533;hb=e8ffca3eb49f607d361688c41c9ae9b3b3de4b80;hpb=4e2e4759a146467b730b256567485706c0e00ab7 diff --git a/src/search.cpp b/src/search.cpp index 66843515..c589f236 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -973,7 +973,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 < 3 + ((ss-1)->statScore > 0) + if ( lmrDepth < 3 + ((ss-1)->statScore > 0 || (ss-1)->moveCount == 1) && (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold && (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold) continue;