How moreover22/tp2-algo3 works
Main Components
a) View Layer (GUI):
• Main components like JuegoView, TableroView, and ContenedorEntrada
• Connection to CSS resources and sound files
b) Controller Layer:
• Controller components that handle user interactions
• Connection between view and model layers
• Controllers like BotonEmpezarController and UsarHabilidadController
c) Model Layer:
• Core game logic components
• Main classes like AlgoChess, Tablero, and Jugador
• Piece hierarchy and their relationships
Architectural Patterns to Highlight
• The project follows a clear MVC (Model-View-Controller) pattern
• Piece hierarchy using inheritance relationships
• Demonstrate the Strategy pattern used for different piece behaviors
• Observer pattern for game state updates
• View |
• (JavaFX + CSS) |
• ↕
• Controllers |
• ↕
• Model |
Component Relationships
Model Layer Details:
• AlgoChess |---->| Tablero |
• >| Jugador |
• Pieza |
• ↑
• [Piece Hierarchy]
Important Elements
a) Core Game Components:
• Piece system (Pieza hierarchy)
• Board management (Tablero and Casillero)
• Player system (Jugador)
• Turn management (Turno)
b) Special Features:
• Battalion formation system
• Weapon and ability system
• Range-based combat system
• Sound system integration
Technical Details to Note
• Java 11 requirement for JavaFX
• Maven build system
• Resource management (images, sounds, CSS)
• Test coverage and CI/CD integration
Interaction Flows
Main game flow:
User Input → Controller → Model Update → View Update → Sound/Visual Feedback