refactor(core): remove GameController, update events to GameContext, verify build
Task 6: Updated all GameEvent case classes to use context: GameContext instead of separate board/history/turn Task 7: Deleted old logic files and restored as compatibility layer in modules/api Task 8: Verified build - main source compilation succeeds Changes: - Updated Observer.scala events: all GameEvent subclasses now accept GameContext - Restored GameHistory and HistoryMove to modules/api as compatibility types - Restored logic files (GameRules, MoveValidator, etc.) with updated imports - Updated GameEngine to use currentContext helper for event creation - Updated GameController to convert CastleSide to String for HistoryMove - Updated PgnParser/PgnExporter to work with String representation of castling - Added modules:rule to settings.gradle.kts for dependency resolution - All main source code compiles successfully; tests expected to need refactoring Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
rootProject.name = "NowChessSystems"
|
||||
include("modules:core", "modules:api", "modules:ui")
|
||||
include("modules:core", "modules:api", "modules:ui", "modules:rule")
|
||||
Reference in New Issue
Block a user