From aa0dc16b754f65e5f5b84c7500732476ca1f035b Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Sat, 27 Jun 2015 12:19:42 -0400 Subject: [PATCH] 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 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.2