X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=8d5ad97975d6e22827a0576173b626759936d0b0;hb=90d051952f4fce415f09f316e24e1701aafa7a92;hp=c3360ad14d49c05b06a28477d5d6357f247d4305;hpb=8b4afcf8f7a38ee3060f39d563aad5956fe723d7;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index c3360ad1..8d5ad979 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1194,11 +1194,14 @@ moves_loop: // When in check, search starts here value = -search(pos, ss+1, -(alpha+1), -alpha, newDepth + doDeeperSearch, !cutNode); // If the move passed LMR update its stats - if (didLMR && !captureOrPromotion) + if (didLMR) { int bonus = value > alpha ? stat_bonus(newDepth) : -stat_bonus(newDepth); + if (captureOrPromotion) + bonus /= 4; + update_continuation_histories(ss, movedPiece, to_sq(move), bonus); } }