mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08: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:
@@ -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);
|
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
|
// 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])
|
if (move != ss->killers[0])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user