1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 08:13:08 +00:00

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 <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-12-08 17:54:37 +01:00
parent 939b621e5c
commit d543a64cc7

View file

@ -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])
{