X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=b68c8b7859a1a6e5a27b761b06c2b80c31ed4f80;hp=7873e7dc552d5ec0cadb8db902df5fe186b31eb6;hb=3ac47c84d35b7cdeea50ecbcf3ad0f73fa848668;hpb=741523eda8e0d1fb418d579c7cda9a73040b8914 diff --git a/src/search.cpp b/src/search.cpp index 7873e7dc..b68c8b78 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -947,13 +947,16 @@ moves_loop: // When in check search starts from here && moveCount > 1 && (!captureOrPromotion || moveCountPruning)) { - int mch = std::max(1, moveCount - (ss-1)->moveCount / 16); - Depth r = reduction(improving, depth, mch); + Depth r = reduction(improving, depth, moveCount); if (captureOrPromotion) r -= r ? ONE_PLY : DEPTH_ZERO; else { + // Decrease reduction if opponent's move count is high + if ((ss-1)->moveCount > 15) + r -= ONE_PLY; + // Increase reduction if ttMove is a capture if (ttCapture) r += ONE_PLY;