How zounkla/agora works
Agora is a Symfony web application for creating lobbies and playing 6 qui prend, Splendor, Glenmore, and Myrmes online. The documented workflow is players creating or joining a game, launching it, and taking game-specific actions; sampled managers show game setup and initialization, while game controllers handle play requests. The source index supports the shared game dispatcher and several manager dependencies. Other platform routes and persistence wiring are represented cautiously because their implementations were not sampled.
Main entry points: GameManagerService.php Game dispatcher · GLMGameManagerService.php Glenmore lifecycle · MYRGameManagerService.php Myrmes lifecycle · BoardManagerService.php Lobby management
Components 17
Platform and lobbies
- Lobby management
app/src/Service/Platform/BoardManagerService.php - Platform records
app/src/Entity/Platform/Board.php
Shared game runtime
- Game dispatcher
app/src/Service/Game/GameManagerService.php - Game manager contract
app/src/Service/Game/AbstractGameManagerService.php - Game and player state
app/src/Entity/Game/DTO/Game.php - Action logs
app/src/Service/Game/LogService.php
Glenmore
- Glenmore actions
app/src/Controller/Game/GlenmoreController.php - Glenmore lifecycle
app/src/Service/Game/Glenmore/GLMGameManagerService.php - Glenmore rules
app/src/Service/Game/Glenmore/GLMService.php - Glenmore state
app/src/Entity/Game/Glenmore/GameGLM.php
Myrmes
- Myrmes actions
app/src/Controller/Game/MyrmesController.php - Myrmes lifecycle
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Myrmes rules
app/src/Service/Game/Myrmes/MYRService.php - Myrmes state
app/src/Entity/Game/Myrmes/GameMYR.php
Other games
- 6 qui prend
app/src/Service/Game/SixQP/SixQPGameManagerService.php - Splendor
app/src/Service/Game/Splendor/SPLGameManagerService.php
Other components
- Players
Connections 18
- Players → Lobby management: creates lobby
- Lobby management → Game dispatcher: requests game
app/src/Service/Platform/BoardManagerService.php - Players → Glenmore actions: plays
app/src/Controller/Game/GlenmoreController.php - Players → Myrmes actions: plays
app/src/Controller/Game/MyrmesController.php - Game dispatcher → Glenmore lifecycle: dispatches
app/src/Service/Game/GameManagerService.php - Game dispatcher → Myrmes lifecycle: dispatches
app/src/Service/Game/GameManagerService.php - Game dispatcher → 6 qui prend: dispatches
app/src/Service/Game/GameManagerService.php - Game dispatcher → Splendor: dispatches
app/src/Service/Game/GameManagerService.php - Glenmore lifecycle → Glenmore rules: initializes
app/src/Service/Game/Glenmore/GLMGameManagerService.php - Myrmes lifecycle → Myrmes rules: initializes
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Glenmore lifecycle → Action logs: records events
app/src/Service/Game/Glenmore/GLMGameManagerService.php - Myrmes lifecycle → Action logs: records events
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Glenmore lifecycle → Glenmore state: creates state
app/src/Service/Game/Glenmore/GLMGameManagerService.php - Myrmes lifecycle → Myrmes state: creates state
app/src/Service/Game/Myrmes/MYRGameManagerService.php - Lobby management → Platform records: manages records
app/src/Service/Platform/BoardManagerService.php - Game dispatcher → Game manager contract: uses contract
app/src/Service/Game/GameManagerService.php - Glenmore actions → Glenmore rules: queries rules
app/src/Controller/Game/GlenmoreController.php - Myrmes actions → Myrmes rules: uses rules
app/src/Controller/Game/MyrmesController.php