X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=7c9c1b6936bfc9220f0b7be372e969a529ee2fd8;hp=1bf855d5589212bc5aaafba6151f2cc2ea2d1c14;hb=3d6995eae8039b2bf4141cbc02d87d5a6c2a1905;hpb=beaadd65474c7cf09b13b8cbeeca769e2737f049 diff --git a/src/search.cpp b/src/search.cpp index 1bf855d5..7c9c1b69 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -995,7 +995,14 @@ moves_loop: // When in check, search starts from here Depth r = reduction(improving, depth, moveCount); if (captureOrPromotion) // (~5 Elo) + { + //Increase reduction by comparing opponent's stat score + if ( (ss-1)->statScore >= 0 + && thisThread->captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 0) + r += ONE_PLY; + r -= r ? ONE_PLY : DEPTH_ZERO; + } else { // Decrease reduction if opponent's move count is high (~5 Elo)