Commit Graph

12 Commits

Author SHA1 Message Date
Janis 3cec5b8898 refactor(tests): enhance test coverage for move application and piece movement logic 2026-04-05 22:03:40 +02:00
Janis 4cf39e3e97 refactor(core): enhance castling logic to include rook movement and improve safety checks 2026-04-05 19:17:23 +02:00
Janis 2cd3ea35f6 refactor(tests): improve FEN and PGN parser test cases for clarity and coverage 2026-04-05 18:41:26 +02:00
Janis 08a8778227 refactor(core): optimize castling move logic and enhance move notation methods
Build & Test (NowChessSystems) TeamCity build failed
2026-04-05 17:58:09 +02:00
Janis 0778882db6 refactor(core): simplify castling logic and improve move translation methods
Build & Test (NowChessSystems) TeamCity build failed
2026-04-05 17:48:06 +02:00
Janis 1fc5e43e77 refactor(core): enhance MoveType to support capture flag and update related logic
Build & Test (NowChessSystems) TeamCity build failed
2026-04-05 17:28:56 +02:00
Janis 9b3bbfbcb7 refactor(core): integrate Rule module and update GameContext handling 2026-04-04 20:25:20 +02:00
Janis c08e5f8c62 refactor(core): migrate GameState to GameContext and update FEN handling
Build & Test (NowChessSystems) TeamCity build failed
2026-04-04 17:55:08 +02:00
Janis 3d9a108bdc refactor(core): NCS-22 update GameEngine to use GameContext and integrate Rule module
Build & Test (NowChessSystems) TeamCity build failed
2026-04-04 17:11:11 +02:00
Janis c59cc2ddcf refactor(rule): implement StandardRules with GameContext 2026-04-03 13:11:20 +02:00
Janis 60e43027fa refactor(rule): update RuleSet to use GameContext
Replace Situation parameter with GameContext across all RuleSet methods
to align with the new game state abstraction. Updated imports to use the
api module's types (GameContext, Square, Move).

StandardRules will need to be updated in Task 3 to implement the new
interface signature and use api types instead of maichess.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-03 12:57:45 +02:00
Janis 8a198cbdf6 feat(api): add immutable GameContext type
Bundles complete game state (board, turn, castling rights, en passant, halfMoveClock, moves)
with immutable builder methods for functional state transitions.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-03 12:49:47 +02:00