Skip to content

feat(chess): add standard rules engine with draw history - #39

Merged
nosam1998 merged 3 commits into
mainfrom
feat/chess-rules-engine
Sep 30, 2026
Merged

nosam1998 merged 3 commits into
mainfrom
feat/chess-rules-engine

Conversation

@nosam1998

@nosam1998 nosam1998 commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Adds a pure standard-chess engine with validated FEN imports, UCI actions, all promotions, castling, en passant, explicit current/intended-move draw claims, fivefold and 75-move automatic draws, and a distinct move cap. Played-state exports retain public history so repetition and claims survive replay, forks and observation-only planning.

Validation: shared conformance, initial-position perft through depth 4 (197,281), Kiwipete through depth 3 (97,862), edge rules, history tampering, and atomic rejection tests. All Rust, database, browser, web and existing benchmark workflows pass. Chess throughput calibration and Stockfish integration remain separate units.

Dependency: shakmaty 0.30.1 supplies legal move generation and position validation. Its GPL-3.0-or-later license is recorded and accepted for this GPLv3 project; Cargo.lock is pinned. FEN validation checks structural and rule consistency, without claiming full retrograde reachability proof.

@nosam1998
nosam1998 marked this pull request as ready for review September 30, 2026 22:43
@nosam1998
nosam1998 merged commit 6bd68c5 into main Sep 30, 2026
9 checks passed
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