X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=756b2d5769fb6f44b854cad829f9e1b1242746ef;hp=02f40199938810008ac2618bdd94e0ed15353861;hb=ae5d2c38e1b9f6a990c29d31a37d6555d197f939;hpb=67ae53b020cbc604a817d249933973fbc9de866b diff --git a/src/search.cpp b/src/search.cpp index 02f40199..756b2d57 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -656,9 +656,11 @@ namespace { if (!pos.capture_or_promotion(ttMove)) update_quiet_stats(pos, ss, ttMove, nullptr, 0, stat_bonus(depth)); - // Extra penalty for a quiet TT move in previous ply when it gets refuted - if ((ss-1)->moveCount == 1 && !pos.captured_piece()) - update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY)); + // Extra penalty for a quiet TT or main killer move in previous ply when it gets refuted + if ( (ss-1)->moveCount == 1 + || ((ss-1)->currentMove == (ss-1)->killers[0] && (ss-1)->killers[0])) + if (!pos.captured_piece()) + update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY)); } // Penalty for a quiet ttMove that fails low else if (!pos.capture_or_promotion(ttMove))