Skip to content

Commit 982fd9c

Browse files
miguel-lsnicolet
authored andcommitted
Penalize refuted killers in continuation history
Currently we apply a penalty in continuation history for refuted TT moves. We can use the same idea to also penalize refuted killer moves in continuation history. STC: http://tests.stockfishchess.org/tests/view/5c00ccbd0ebc5902bcedd768 LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 54366 W: 12086 L: 11687 D: 30593 LTC: http://tests.stockfishchess.org/tests/view/5c0107880ebc5902bceddc9c LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 25457 W: 4302 L: 4078 D: 17077 Bench: 3419069
1 parent 79e3710 commit 982fd9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/search.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,12 @@ namespace {
11901190
// Extra penalty for a quiet TT move in previous ply when it gets refuted
11911191
if ((ss-1)->moveCount == 1 && !pos.captured_piece())
11921192
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY));
1193+
1194+
// Extra penalty for killer move in previous ply when it gets refuted
1195+
else if ( (ss-1)->killers[0]
1196+
&& (ss-1)->currentMove == (ss-1)->killers[0]
1197+
&& !pos.captured_piece())
1198+
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth));
11931199
}
11941200
// Bonus for prior countermove that caused the fail low
11951201
else if ( (depth >= 3 * ONE_PLY || PvNode)

0 commit comments

Comments
 (0)