Skip to content

Commit

Permalink
fix: Killer moves updates
Browse files Browse the repository at this point in the history
BENCH: 30166568
  • Loading branch information
IbaiBuR committed Jul 20, 2024
1 parent 17445b7 commit c9127c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/search/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,12 @@ score searcher::negamax(const board::position& pos,
if constexpr (pv_node)
pv.update(current_move, child_pv);

if (best_move.is_quiet())
m_data.update_killers(best_move, ply);
if (alpha >= beta) {
if (best_move.is_quiet())
m_data.update_killers(best_move, ply);

if (alpha >= beta)
break;
}
}
}

Expand Down

0 comments on commit c9127c0

Please sign in to comment.