How tafursj17/project-chees works
Project’s Main Parts
• Game Engine/Controller: In charge of running the simulation. This includes the core game logic (CheesGame), configuration parameters (CheesGameParameters), and the main class that initiates and orchestrates the game.
• Sorting Algorithms Module: Contains several algorithm implementations (BubbleSort, InsertionSort, QuickSort) and an interface (Algorithm) to ensure they can be swapped or extended per SOLID’s Open-Closed Principle.
• Visualization Component: “SortingVisualization” and related classes show the step-by-step changes on the board (“tablero”) that represent the state of the game during sorting.
• Domain Models & Enumerations: Classes in the Enums package (CharacterList, NumberList, PieceColor, ValueType) and other domain-specific classes (e.g., ChoosePiecesCharacter, ChoosePiecesNumeric) capture the rules and settings for identifying chess pieces.
• Testing: A separate test module (ChessGameTest) ensures that the core logic works as expected.
Out Relationships and Dependencies
• The Visualization Component is tightly linked with the game engine and sorting modules – it receives and displays the changes in board state as sorting steps are executed.
• Domain models (like those found in the Enums package and ChoosePieces classes) provide configuration and state information to both the sorting component and game engine.
Architectural Patterns & Design Principles
• Object-Oriented Design: Emphasize the use of interfaces (i.e., Algorithm) and encapsulated classes (CheesGame, SortingVisualization).
• Modular Packaging: Display how packages and subdirectories (e.g., Main, Algorithms, Enums, Interface) contribute separate concerns.
Relevant Technologies & Frameworks
• Java is the core technology.
• That while this is not a web or microservices app, the separation internally resembles a layered architecture.
• CLI / Argument Parser handling user inputs.
• Game Controller/Engine (CheesGame & CheesGameParameters).
• Sorting Algorithms Interface and its implementations (BubbleSort, InsertionSort, QuickSort).
• Visualization component (SortingVisualization).
• Domain Models & Enums.
• Test Component (ChessGameTest) – where applicable.
Putting It Together
Happy diagramming!