Skip to content

Commit

Permalink
Static exchange evaluation pruning at depth 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
petur committed Dec 1, 2024
1 parent 686b093 commit 455a418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seawall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3693,8 +3693,8 @@ std::pair<int, Move> Search::search(bool pv, int ply, int depth, int alpha, int
if (!checkers && move_count && depth <= 2 && !(type(mv) & (CAPTURE | PROMOTION)) && eval < beta - 165 * (depth - 1) + 151 &&
see_under(mv, -137))
continue;
if (!checkers && move_count && depth <= 1 && (type(mv) & CAPTURE) && !(type(mv) & PROMOTION) &&
eval < beta + 51 && see_under(mv, -137))
if (!checkers && move_count && depth <= 2 && (type(mv) & CAPTURE) && !(type(mv) & PROMOTION) &&
eval < beta + 51 && see_under(mv, -100 * (depth - 1) - 137))
continue;
if (!checkers && !checks && move_count && depth <= 1 && !(type(mv) & (CAPTURE | PROMOTION)) && eval < alpha - 50 &&
history[position.next][mv & FROM_TO_MASK].value < -6000)
Expand Down

0 comments on commit 455a418

Please sign in to comment.