From: VoyagerOne Date: Sat, 27 Jun 2015 16:19:42 +0000 (-0400) Subject: CMH Fix: Exclude captures for TT move refutation penalty X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=aa0dc16b754f65e5f5b84c7500732476ca1f035b;hp=112607bf490ccdeaf3446996c6c4f09a11778c7b CMH Fix: Exclude captures for TT move refutation penalty This will make sure we store only quiet moves for TT Penalty. STC: LLR: 2.96 (-2.94,2.94) [-1.50,4.50] Total: 34748 W: 6617 L: 6420 D: 21711 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 19975 W: 3259 L: 3137 D: 13579 Bench: 8063826 Resolves #373 --- diff --git a/src/search.cpp b/src/search.cpp index 727990dc..865e4771 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1428,7 +1428,7 @@ moves_loop: // When in check and at SpNode search starts from here } // Extra penalty for TT move in previous ply when it gets refuted - if (is_ok((ss-2)->currentMove) && (ss-1)->currentMove == (ss-1)->ttMove) + if (is_ok((ss-2)->currentMove) && (ss-1)->currentMove == (ss-1)->ttMove && !pos.captured_piece_type()) { Square prevPrevSq = to_sq((ss-2)->currentMove); HistoryStats& ttMoveCmh = CounterMovesHistory[pos.piece_on(prevPrevSq)][prevPrevSq];