How ixchelchvz/escape-room works
HERACLES.EXE is a Flask-backed digital escape room: a team identifies itself, explores a map and completes twelve browser minigames, submits progress for server validation, and enters the assembled password to restore the site. The backend tracks team sessions and results; an administrator can monitor teams and grant trials. The README documents additional QR/oracle, leaderboard, and restored-site features. Some frontend and backend files were not excerpted, so their documented capabilities are included, while unsupported internal call paths are omitted.
Main entry points: api.py Gameplay API · main.py Page routes · main.js Map and progress UI · models.py Game data models
Components 20
Player experience
- Broken landing
templates/index.html - Terminal intro
static/js/terminalIntro.js - Team identification
templates/login.html - Map and progress UI
static/js/main.js - Restored site
templates/webRestaurada.html - Restored-site search
static/js/webRestaurada_2.js
Trials and progression
- Trial minigames
static/js/juegos.js - Trial definitions
heracles/game_data.py - Hesperides oracle
templates/oraculo.html
Backend and persistence
- Gameplay API
heracles/blueprints/api.py - Page routes
heracles/blueprints/main.py - Shared queries
heracles/services.py - Game data models
heracles/models.py - Game database
- Application configuration
heracles/config.py - Flask app setup
app.py
Administration
- Admin panel
heracles/blueprints/admin.py - Oracle QR
templates/admin_qr.html
Other components
- Player team
- Administrator
Connections 28
- Player team → Broken landing: opens
README.md - Broken landing → Terminal intro: starts intro
README.md - Player team → Team identification: identifies team
README.md - Team identification → Gameplay API: registers or selects
README.md - Player team → Map and progress UI: plays map
README.md - Map and progress UI → Trial minigames: opens trial
static/js/main.js - Trial minigames → Map and progress UI: reports completion
README.md - Map and progress UI → Gameplay API: validates and syncs
static/js/main.js - Gameplay API → Trial definitions: checks answers
heracles/blueprints/api.py - Gameplay API → Game data models: updates progress
heracles/blueprints/api.py - Game data models → Game database: persists records
README.md - Page routes → Shared queries: loads trials and podium
heracles/blueprints/main.py - Shared queries → Game data models: queries teams and trials
heracles/services.py - Page routes → Game data models: loads team state
heracles/blueprints/main.py - Map and progress UI → Gameplay API: verifies final password
README.md - Gameplay API → Restored site: enables victory view
README.md - Page routes → Restored site: renders restored page
heracles/blueprints/main.py - Restored site → Shared queries: shows leaderboard
- Restored site → Restored-site search: uses search
README.md - Administrator → Admin panel: manages teams
README.md - Admin panel → Game data models: grants or resets trials
heracles/blueprints/admin.py - Admin panel → Oracle QR: generates QR
heracles/blueprints/admin.py - Oracle QR → Hesperides oracle: opens token page
README.md - Page routes → Hesperides oracle: renders oracle
heracles/blueprints/main.py - Flask app setup → Application configuration: loads settings
app.py - Flask app setup → Page routes: registers routes
app.py - Flask app setup → Gameplay API: registers routes
app.py - Flask app setup → Admin panel: registers routes
app.py