From d543a64cc7fc06daed275b332b10ea06ba738001 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 8 Dec 2011 17:54:37 +0100 Subject: [PATCH] Don't update killers for evasions We don't use killers to order evasions, so it seems natural do not consider an evasion cut-off move as a possible killer. Test shows almost no change, as it should be becuase this is a really tiny change, but neverthless seems the correct thing to do. After 11893 games Mod vs Orig 1773 - 1696 - 8424 ELO +2 (+-3.4) Idea from Critter. Signed-off-by: Marco Costalba --- src/search.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 9393db65..0ca539ae 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1141,7 +1141,9 @@ split_point_start: // At split points actual search starts from here TT.store(posKey, value_to_tt(bestValue, ss->ply), vt, depth, move, ss->eval, ss->evalMargin); // Update killers and history for non capture cut-off moves - if (bestValue >= beta && !pos.is_capture_or_promotion(move)) + if ( bestValue >= beta + && !pos.is_capture_or_promotion(move) + && !inCheck) { if (move != ss->killers[0]) { -- 2.39.2