Skip to content

Add Mate Distance Pruning - #15

Merged
KnightStackSys merged 1 commit into
mainfrom
mate-distance-pruning
Oct 11, 2026
Merged

KnightStackSys merged 1 commit into
mainfrom
mate-distance-pruning

Conversation

@KnightStackSys

Copy link
Copy Markdown
Owner

Adds Mate Distance Pruning (MDP) as an isolated search experiment.

Policy

  • clamps alpha to the worst mate score still reachable at the current ply
  • clamps beta to the best mate score still reachable at the current ply
  • immediately returns when those mate bounds collapse the window
  • applies in both the regular negamax search and qsearch

IronPhoenix score convention

IronPhoenix scores an immediate terminal king capture as MATE_SCORE - (ply + 1) and a side already mated at the current node as -MATE_SCORE + ply. The MDP bounds are aligned to those exact conventions instead of copying a generic two-player formula.

Scope

  • only src/search.cpp changes
  • no changes to LMR, LMP, SEE pruning, TT policy, aspiration windows, move ordering, history, or evaluation

This branch is intentionally isolated for SPRT testing directly against main.

@KnightStackSys
KnightStackSys marked this pull request as ready for review October 11, 2026 04:31
@KnightStackSys

Copy link
Copy Markdown
Owner Author

No SPRT needed for this PR

@KnightStackSys
KnightStackSys merged commit 77e5dda into main Oct 11, 2026
2 checks passed
@KnightStackSys
KnightStackSys deleted the mate-distance-pruning branch October 11, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant