Skip to content

Stop search after a confirmed winning mate - #41

Merged
KnightStackSys merged 1 commit into
mainfrom
feature/stop-search-on-mate
Oct 18, 2026
Merged

KnightStackSys merged 1 commit into
mainfrom
feature/stop-search-on-mate

Conversation

@KnightStackSys

Copy link
Copy Markdown
Owner

Summary

  • Stop regular iterative deepening after a completed root iteration returns a winning mate and valid best move.
  • Avoid stopping on intermediate aspiration bounds, losing mates, ordinary cp scores, or missing root moves.
  • Preserve UCI go infinite and active pondering until stop/ponderhit.
  • Apply the same behavior to MultiPV only after the complete depth's requested PV lines have been emitted.
  • Add focused predicate tests and end-to-end four-player Teams king-capture mate tests for regular search and MultiPV.
  • Document behavior in docs/mate-stop.md.

Validation

Linux GCC and Windows MSVC CI pending. No changes to scoring, pruning, or move-ordering heuristics.

@KnightStackSys
KnightStackSys marked this pull request as ready for review October 18, 2026 16:16
@KnightStackSys
KnightStackSys merged commit ee79a81 into main Oct 18, 2026
2 checks passed
@KnightStackSys
KnightStackSys deleted the feature/stop-search-on-mate branch October 18, 2026 16:19
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