How bugvn/debug-escape-room works
REMEDIATE is a browser-based Python debugging escape-room game. Players create an account, choose a room, edit and run four buggy programs, submit fixes, and receive a score and report; saved play history informs later room difficulty and practice. The graph also includes the lesson, teacher analytics, integrity controls, and shared settings. The README documents the product flow; source-index references support only a few code-level links, so other implementation links are omitted or marked unverified rather than asserted.
Main entry points: game-room.html Escape room · dashboard.js Game dashboard · schema.sql Game history store · puzzles.js Puzzle bank
Components 22
Player journey
- Landing and rules
index.html - Debugging lesson
lesson.html - Game dashboard
js/dashboard.js
Puzzle gameplay
- Escape room
game-room.html - Puzzle bank
js/puzzles.js - Puzzle content
js/puzzles.json - Browser Python
js/pyrunner.js - Fair-play controls
js/integrity.js - Scoring rules
js/score.js - Adaptive room choice
js/adaptive.js
Accounts and records
- Account access
js/login.js - Supabase auth
- Game history store
sql/schema.sql - Progress tracking
js/progress.js - Supabase service
Reports and analytics
- Game report
test-summary.html - Cohort analytics
analytics.html - Analytics analysis
js/analytics.js
Shared experience
- Player settings
js/shared-settings.js - Shared navigation
js/site-header.js - Ambient music
js/ambient-music.js
Other components
- Player
Connections 26
- Player → Landing and rules: opens
README.md - Player → Account access: signs in
README.md - Account access → Supabase auth: authenticates
- Player → Debugging lesson: studies
README.md - Player → Game dashboard: starts game
README.md - Game dashboard → Escape room: opens room
README.md - Escape room → Puzzle bank: loads bank
js/puzzles.js - Puzzle bank → Puzzle content: loads data
js/puzzles.js - Escape room → Browser Python: runs code
- Escape room → Fair-play controls: enforces rules
js/integrity.js - Escape room → Scoring rules: uses scoring
- Game dashboard → Scoring rules: calculates scores
js/dashboard.js - Game dashboard → Puzzle bank: maps mistakes
js/dashboard.js - Escape room → Game history store: saves game
- Game history store → Supabase service: persists to
README.md - Game dashboard → Game history store: reads history
- Game history store → Adaptive room choice: supplies outcomes
- Adaptive room choice → Puzzle bank: chooses puzzles
js/adaptive.js - Escape room → Game report: shows results
README.md - Player → Cohort analytics: views cohort data
README.md - Cohort analytics → Analytics analysis: analyzes data
- Analytics analysis → Puzzle bank: uses categories
js/analytics.js - Player → Player settings: configures play
- Player → Shared navigation: navigates
js/site-header.js - Shared navigation → Ambient music: reads mute state
js/site-header.js - Progress tracking → Game history store: tracks progress