mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Update killers after a TT hit
Almost no increase but seems the logic thing to do. After 16707 games 2771 - 2595 - 11341 ELO +3 (+- 3.2) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
10b24af98a
commit
6bc16f3ff1
1 changed files with 12 additions and 2 deletions
|
@ -780,8 +780,18 @@ namespace {
|
|||
: can_return_tt(tte, depth, beta, ss->ply)))
|
||||
{
|
||||
TT.refresh(tte);
|
||||
ss->bestMove = ttMove; // Can be MOVE_NONE
|
||||
return value_from_tt(tte->value(), ss->ply);
|
||||
ss->bestMove = move = ttMove; // Can be MOVE_NONE
|
||||
value = value_from_tt(tte->value(), ss->ply);
|
||||
|
||||
if ( value >= beta
|
||||
&& move
|
||||
&& !pos.move_is_capture_or_promotion(move)
|
||||
&& move != ss->killers[0])
|
||||
{
|
||||
ss->killers[1] = ss->killers[0];
|
||||
ss->killers[0] = move;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
// Step 5. Evaluate the position statically and update parent's gain statistics
|
||||
|
|
Loading…
Add table
Reference in a new issue