-
refactor: NCS-19 Currying (#18)
released this
2026-04-06 21:03:17 +02:00 | 140 commits to main since this releaseSummary
- Curried candidateMoves, legalMoves, and applyMove in the RuleSet trait to separate (context) as the world being
operated on from the computation parameter - Updated DefaultRules overrides and all internal call sites
- Updated all external call sites: GameEngine, PgnParser, PgnExporter, ChessBoardView, and all affected tests
Test plan
- All existing tests pass (./gradlew build)
- No behaviour changes — pure style refactoring, existing test suite is the regression guard
Co-authored-by: LQ63 lkhermann@web.de
Reviewed-on: #18
Reviewed-by: Janis janis-e@gmx.de
Co-authored-by: Leon Hermann lq@blackhole.local
Co-committed-by: Leon Hermann lq@blackhole.localDownloads
- Curried candidateMoves, legalMoves, and applyMove in the RuleSet trait to separate (context) as the world being