Change updating rule after a TT hit to match
the same one at the end of the search.
Small change in functionality, but we want to
have uniform rules in the code.
bench:
7767864
if ( ttValue >= beta
&& ttMove
&& !pos.capture_or_promotion(ttMove)
if ( ttValue >= beta
&& ttMove
&& !pos.capture_or_promotion(ttMove)
- && ttMove != ss->killers[0])
- ss->killers[1] = ss->killers[0];
- ss->killers[0] = ttMove;
+ if (ss->killers[0] != ttMove)
+ {
+ ss->killers[1] = ss->killers[0];
+ ss->killers[0] = ttMove;
+ }
Value bonus = Value(int(depth) * int(depth));
History.update(pos.moved_piece(ttMove), to_sq(ttMove), bonus);
Value bonus = Value(int(depth) * int(depth));
History.update(pos.moved_piece(ttMove), to_sq(ttMove), bonus);