Skip to content

Commit

Permalink
razoring simplification
Browse files Browse the repository at this point in the history
bench 1048812
  • Loading branch information
xu-shawn committed Dec 22, 2024
1 parent f656fdf commit da4d14e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,12 +775,8 @@ 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.
if (eval < alpha - 469 - 307 * depth * depth)
{
value = qsearch<NonPV>(pos, ss, alpha - 1, alpha);
if (value < alpha && !is_decisive(value))
return value;
}
if (!PvNode && eval < alpha - 469 - 307 * depth * depth)
return qsearch<NonPV>(pos, ss, alpha - 1, alpha);

// Step 8. Futility pruning: child node (~40 Elo)
// The depth condition is important for mate finding.
Expand Down

0 comments on commit da4d14e

Please sign in to comment.