Skip to content

Commit 7b4f9c3

Browse files
VoyagerOnesnicolet
authored andcommitted
Simplify Killer Move Penalty
STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 20816 W: 4525 L: 4402 D: 11889 http://tests.stockfishchess.org/tests/view/5c017cb90ebc5902bcede5b4 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 39287 W: 6401 L: 6309 D: 26577 http://tests.stockfishchess.org/tests/view/5c01825e0ebc5902bcede686 Bench: 3773021
1 parent b19ad49 commit 7b4f9c3

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/search.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,15 +1185,12 @@ namespace {
11851185

11861186
update_capture_stats(pos, bestMove, capturesSearched, captureCount, stat_bonus(depth + ONE_PLY));
11871187

1188-
// Extra penalty for a quiet TT move in previous ply when it gets refuted
1189-
if ((ss-1)->moveCount == 1 && !pos.captured_piece())
1190-
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY));
1191-
1192-
// Extra penalty for killer move in previous ply when it gets refuted
1193-
else if ( (ss-1)->killers[0]
1194-
&& (ss-1)->currentMove == (ss-1)->killers[0]
1195-
&& !pos.captured_piece())
1196-
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth));
1188+
// Extra penalty for a quiet TT or main killer move in previous ply when it gets refuted
1189+
if ( (ss-1)->moveCount == 1
1190+
|| ((ss-1)->currentMove == (ss-1)->killers[0] && (ss-1)->killers[0]))
1191+
if (!pos.captured_piece())
1192+
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY));
1193+
11971194
}
11981195
// Bonus for prior countermove that caused the fail low
11991196
else if ( (depth >= 3 * ONE_PLY || PvNode)

0 commit comments

Comments
 (0)