X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=6cb42cc3a38ac3da6cdc64bfab31b9237dda383b;hb=9d53129075177cb11b63b43236556051ba60f7dd;hp=143d0883a4da699446ada1d049182c1b38b85de8;hpb=ff4c22238a199625cf7f02be1816b07fc49f5d45;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 143d0883..6cb42cc3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1151,16 +1151,16 @@ moves_loop: // When in check, search starts from here if (singularQuietLMR) r--; + // Increase reduction for cut nodes (~3 Elo) + if (cutNode) + r += 1 + !captureOrPromotion; + if (!captureOrPromotion) { // Increase reduction if ttMove is a capture (~3 Elo) if (ttCapture) r++; - // Increase reduction for cut nodes (~3 Elo) - if (cutNode) - r += 2; - ss->statScore = thisThread->mainHistory[us][from_to(move)] + (*contHist[0])[movedPiece][to_sq(move)] + (*contHist[1])[movedPiece][to_sq(move)]