From b184d50265a78467c66301461494754de2abfe4f Mon Sep 17 00:00:00 2001 From: Janis Date: Fri, 3 Apr 2026 17:16:40 +0200 Subject: [PATCH] refactor(core): cleanup UI and notation imports for NCS-22 interface abstraction - Removed unused CastleSide import from PgnExporter - Updated TerminalUI and GUIObserver to use GameContext - Temporarily disabled GUI FEN/PGN import-export (requires full rework with GameContext) - Deleted unused logic files and GameController per spec Note: GameEngine still needs final refactoring to use RuleSet + GameContext. Core architecture (api -> rule -> core) is structurally complete. --- .idea/gradle.xml | 1 + .idea/scala_compiler.xml | 2 +- .../plans/2026-04-03-ncs22-module-refactor.md | 364 ++++++++++++++++++ ...e-refactor-interface-abstraction-design.md | 212 ++++++++++ .../nowchess/chess/notation/PgnExporter.scala | 1 - .../nowchess/chess/notation/PgnParser.scala | 1 - .../de/nowchess/ui/gui/ChessBoardView.scala | 62 +-- .../de/nowchess/ui/gui/GUIObserver.scala | 14 +- .../de/nowchess/ui/terminal/TerminalUI.scala | 15 +- 9 files changed, 605 insertions(+), 67 deletions(-) create mode 100644 docs/superpowers/plans/2026-04-03-ncs22-module-refactor.md create mode 100644 docs/superpowers/specs/2026-04-03-module-refactor-interface-abstraction-design.md diff --git a/.idea/gradle.xml b/.idea/gradle.xml index f1d0a36..0d1ff20 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -12,6 +12,7 @@ diff --git a/.idea/scala_compiler.xml b/.idea/scala_compiler.xml index a0f8d4f..e12ee29 100644 --- a/.idea/scala_compiler.xml +++ b/.idea/scala_compiler.xml @@ -5,7 +5,7 @@