Open
Conversation
3dd9239 to
42d2d60
Compare
9f14f89 to
5019fdf
Compare
42d2d60 to
bd310e6
Compare
5019fdf to
369da0e
Compare
bd310e6 to
caf3d13
Compare
369da0e to
fe21981
Compare
🔬 Stockfish Benchmark Resultsvs Stockfish Skill Level 3
vs Stockfish Skill Level 4
vs Stockfish Skill Level 5
Configuration
|
Implements futility pruning to skip quiet moves that can't improve alpha: **Futility Pruning:** - At low depths (1-2), compute static evaluation - If eval + margin < alpha, quiet moves can't help - Skip quiet moves (no capture, check, or promotion) - Never prune the first move (might be the only good one) **Margin Calculation:** - Depth 1: 100 centipawns margin - Depth 2: 200 centipawns margin - Larger margin at deeper depths allows for more potential improvement **Conditions for pruning:** - Depth <= 2 - Not in check (check positions are critical) - Static eval + margin < alpha - Move is quiet (not capture/check/promotion) - Not the first move in the list This is a forward pruning technique that can miss some moves, but the marginsare conservative enough to rarely affect results while significantly reducing nodes searched. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
65d1f14 to
ef70357
Compare
8e565c6 to
aa2d0a7
Compare
Owner
Author
|
/run-nps-benchmark |
⚡ NPS Benchmark Results
Per-position breakdown |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Details
Futility Pruning
If the static evaluation plus a safety margin is still below alpha, quiet moves
are unlikely to improve the position enough to beat alpha. We skip them.
Implementation:
Safety Conditions
Pruning is conservative to avoid missing important moves:
Why it Works
At low depths near leaf nodes:
Test plan
🤖 Generated with Claude Code