How kminh-wow/game_hub works
Game Hub is a browser-based collection of nine single- and multiplayer games. Players visit the hub, choose a game, and play in a browser; multiplayer games use shared lobby, room, and WebSocket infrastructure, while Quoridor has its own server flow. Game-specific rules and state are implemented separately from their interfaces. The README documents capabilities such as multiplayer spectating, AI opponents, and Quoridor’s learning mode; several game internals were not sampled, so those subsystem details and links are represented only where evidence supports them.
Main entry points: server/main.py Quoridor Server · server.py Lobby Server · room.py Room Lifecycle · hub/main.py Game Hub
Components 32
Hub
- Game Hub
hub/main.py - Lobby Interface
common/web/lobby.js
Multiplayer Core
- WebSocket App
common/multiplayer/app.py - Lobby Server
common/multiplayer/server.py - Room Lifecycle
common/multiplayer/room.py - Player Model
common/multiplayer/models.py - Game Logging
common/multiplayer/log.py
Game Services
- Word Chain
wordchain/app/game.py - Word Dictionary
wordchain/app/dictionary.py - Hangman
hangman/app/game.py - Word List
hangman/app/words.py - Omok
omok/app/game.py - Omok AI
omok/app/ai.py - Fortress
fortress/app/game.py - Turn FPS
shooter/app/game.py - Yacht Dice
yacht/app/game.py - Quoridor Server
quoridor/server/main.py - Quoridor Rules
quoridor/server/game.py - Quoridor AI
quoridor/server/ai.py - Move Analysis
quoridor/server/analysis.py
Browser Clients
- Pac-Man Client
pacman/web/game.js - Runner Client
runner/web/game.js - Quoridor Board
quoridor/web/board3d.js - Word Chain Client
wordchain/static/app.js - Hangman Client
hangman/static/app.js - Omok Client
omok/static/app.js - Fortress Client
fortress/static/app.js - Turn FPS Client
shooter/static/app.js - Yacht Client
yacht/static/app.js
Solo Games
- Pac-Man Logic
pacman/web/logic.js - Runner Logic
runner/web/logic.js
Other components
- Player
Connections 26
- Player → Game Hub: opens
- Game Hub → Lobby Interface: offers games
- Player → Lobby Interface: chooses game
- WebSocket App → Lobby Server: handles messages
common/multiplayer/app.py - Lobby Server → Room Lifecycle: creates and updates
common/multiplayer/server.py - Lobby Server → Player Model: tracks players
common/multiplayer/server.py - Room Lifecycle → Player Model: broadcasts to
common/multiplayer/room.py - Room Lifecycle → Game Logging: records events
common/multiplayer/room.py - Word Chain → Word Dictionary: validates with
- Hangman → Word List: uses word list
hangman/app/room.py - Omok → Omok AI: uses opponent
omok/app/room.py - Quoridor Server → Quoridor Rules: applies moves
quoridor/server/main.py - Quoridor Server → Quoridor AI: chooses AI moves
quoridor/server/main.py - Quoridor Server → Move Analysis: analyzes moves
quoridor/server/main.py - Quoridor AI → Quoridor Rules: evaluates state
quoridor/server/ai.py - Pac-Man Client → Pac-Man Logic: uses logic
pacman/web/game.js - Runner Client → Runner Logic: uses logic
runner/web/game.js - Player → Word Chain Client: plays
- Player → Hangman Client: plays
- Player → Omok Client: plays
- Player → Fortress Client: plays
- Player → Turn FPS Client: plays
- Player → Yacht Client: plays
- Player → Quoridor Board: plays
- Player → Pac-Man Client: plays
- Player → Runner Client: plays