How ayushdeep117/guess-the-word works
Guess The Word is a Flask word-guessing game. Players register or log in, start a game, submit guesses, and see evaluated feedback; administrators view daily and per-user reports. Routes coordinate services, validation, and SQLite-backed state. The graph follows the supplied route and service excerpts; template and database internals are represented only where supported by the tree or README.
Main entry points: game_routes.py Game routes · app.py Flask app · auth_routes.py Account routes · admin_routes.py Admin routes
Components 16
Web interface
- Flask app
app.py - Game and account pages
templates - Guess input
static/js/game.js
Accounts and access
- Account routes
routes/auth_routes.py - Account service
services/auth_service.py - Session access checks
utils/auth.py - Input validation
utils/validators.py
Game workflow
- Game routes
routes/game_routes.py - Game rules and state
services/game_service.py - Guess evaluation
utils/word_evaluator.py
Administration and reports
- Admin routes
routes/admin_routes.py - Report queries
services/report_service.py - Admin report pages
templates
Other components
- Player
- Administrator
- SQLite game data
database/db.py
Connections 22
- Player → Flask app: uses
- Administrator → Flask app: uses
- Flask app → Account routes: registers
- Flask app → Game routes: registers
- Flask app → Admin routes: registers
- Account routes → Account service: calls
- Account routes → Session access checks: checks access
- Account service → Input validation: validates
- Account service → SQLite game data: reads and writes
- Account routes → Game and account pages: renders
- Game routes → Session access checks: checks access
- Game routes → Input validation: validates guesses
- Game routes → Game rules and state: calls
- Game routes → Guess evaluation: evaluates history
- Game rules and state → Guess evaluation: evaluates guess
- Game rules and state → SQLite game data: reads and writes
- Game routes → Game and account pages: renders
- Game and account pages → Guess input: loads
- Admin routes → Session access checks: checks access
- Admin routes → Report queries: calls
- Report queries → SQLite game data: queries
- Admin routes → Admin report pages: renders