Skip to content

Commit

Permalink
Update search.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin authored Jan 12, 2025
1 parent da4d14e commit afdc353
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ Value Search::Worker::search(
// Step 7. Razoring (~1 Elo)
// If eval is really low, check with qsearch if we can exceed alpha. If the
// search suggests we cannot exceed alpha, return a speculative fail low.
// For PvNodes, we must have a guard against mates being returned.
if (!PvNode && eval < alpha - 469 - 307 * depth * depth)
return qsearch<NonPV>(pos, ss, alpha - 1, alpha);

Expand Down

0 comments on commit afdc353

Please sign in to comment.