How izaalalacoder/agora works
Agora is a Symfony web application for creating online board-game lobbies, inviting or joining players, and playing 6 qui prend, Splendor, Glenmore, and Myrmes. The platform layer manages lobby and account workflows; a shared game manager dispatches lifecycle operations to game-specific managers, while game controllers handle play interactions and game services implement rules. Persistent game state is represented by Doctrine entities and repositories, with game activity recorded by a logging service. The README documents the product capabilities; some controller and service internals were not sampled, so uncertain links are omitted.
Main entry points: GameManagerService.php Game dispatch · MYRGameManagerService.php Myrmes setup · LogService.php Game activity logs · Game.php Game entities
Components 20
Platform
- Platform workflows
app/src/Controller/Platform/DashboardController.php - Lobby management
app/src/Service/Platform/BoardManagerService.php - Platform records
app/src/Entity/Platform/Board.php
Game lifecycle
- Game dispatch
app/src/Service/Game/GameManagerService.php - Lifecycle contract
app/src/Service/Game/AbstractGameManagerService.php - Glenmore setup
app/src/Service/Game/Glenmore/GLMGameManagerService.php - Myrmes setup
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Splendor setup
app/src/Service/Game/Splendor/SPLGameManagerService.php - 6QP setup
app/src/Service/Game/SixQP/SixQPGameManagerService.php
Game play
- Game interactions
app/src/Controller/Game/GlenmoreController.php - Glenmore rules
app/src/Service/Game/Glenmore/GLMService.php - Myrmes rules
app/src/Service/Game/Myrmes/MYRService.php - Splendor rules
app/src/Service/Game/Splendor/SPLService.php - 6QP rules
app/src/Service/Game/SixQP/SixQPService.php
Game state
- Game entities
app/src/Entity/Game/DTO/Game.php - Myrmes player state
app/src/Entity/Game/Myrmes/PlayerMYR.php - Game repositories
app/src/Repository/Game/Glenmore/PlayerGLMRepository.php - Game activity logs
app/src/Service/Game/LogService.php
Other components
- Player
- MariaDB
Connections 22
- Player → Platform workflows: uses
- Platform workflows → Lobby management: manages lobbies
- Lobby management → Game dispatch: delegates games
app/src/Service/Platform/BoardManagerService.php - Game dispatch → Lifecycle contract: uses contract
app/src/Service/Game/GameManagerService.php - Game dispatch → Glenmore setup: dispatches
app/src/Service/Game/GameManagerService.php - Game dispatch → Myrmes setup: dispatches
app/src/Service/Game/GameManagerService.php - Game dispatch → Splendor setup: dispatches
app/src/Service/Game/GameManagerService.php - Game dispatch → 6QP setup: dispatches
app/src/Service/Game/GameManagerService.php - Glenmore setup → Game entities: creates
app/src/Service/Game/Glenmore/GLMGameManagerService.php - Myrmes setup → Game entities: creates
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Splendor setup → Game entities: creates
app/src/Service/Game/Splendor/SPLGameManagerService.php - 6QP setup → Game entities: creates
app/src/Service/Game/SixQP/SixQPGameManagerService.php - Game interactions → Glenmore rules: calls
app/src/Controller/Game/GlenmoreController.php - Game interactions → Game activity logs: records actions
app/src/Controller/Game/GlenmoreController.php - Glenmore setup → Game activity logs: writes logs
app/src/Service/Game/Glenmore/GLMGameManagerService.php - Myrmes setup → Game activity logs: writes logs
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Game dispatch → Game repositories: reads games
app/src/Service/Game/GameManagerService.php - Lobby management → Platform records: manages records
app/src/Service/Platform/BoardManagerService.php - Myrmes setup → Myrmes player state: creates players
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Game repositories → MariaDB: persists state
- Platform records → MariaDB: persists records
- Game activity logs → MariaDB: stores logs
app/src/Service/Game/LogService.php