WIP: feat: NCS-4 Currying #11

Closed
lq64 wants to merge 3 commits from feat/NCS-4 into main
Owner

Summary

  • Curried the 6 public methods of MoveValidator(board[, history]) is now
    the first parameter group, computation parameters (from, to, color) form the second
  • Curried the 3 public methods of GameRules — same split pattern
  • Updated all call sites: GameRules internals, MoveValidator internals,
    GameController, PgnParser, and both test suites
  • Applied partial application where board is fixed across a loop
    (isInCheck, legalMoves) as a style gain

Test Plan

  • ./gradlew :modules:core:test — all 263 tests green
  • No behaviour changes — pure style refactoring, test suite is the regression guard
## Summary - Curried the 6 public methods of `MoveValidator` — `(board[, history])` is now the first parameter group, computation parameters (`from`, `to`, `color`) form the second - Curried the 3 public methods of `GameRules` — same split pattern - Updated all call sites: `GameRules` internals, `MoveValidator` internals, `GameController`, `PgnParser`, and both test suites - Applied partial application where `board` is fixed across a loop (`isInCheck`, `legalMoves`) as a style gain ## Test Plan - [ ] `./gradlew :modules:core:test` — all 263 tests green - [ ] No behaviour changes — pure style refactoring, test suite is the regression guard
lq64 added 3 commits 2026-03-31 18:15:13 +02:00
lq64 changed title from feat/NCS-4 to feat: NCS-4 Currying 2026-04-01 10:38:13 +02:00
Janis marked the pull request as work in progress 2026-04-01 18:34:56 +02:00
Janis closed this pull request 2026-04-07 08:35:20 +02:00
Some checks are pending
Build & Test (NowChessSystems) TeamCity build failed

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NowChess/NowChessSystems#11