Idea · Aug 27, 2026
Bug Olympics
A competitive in-class game where students race to fix a live queue of seeded buggy code snippets, with a real-time Supabase leaderboard, per-bug time tracking, and a post-round heat map showing which error types slowed the whole class down.
What it would do
Bug Olympics turns debugging practice into a 20-minute classroom event. The instructor creates a session by uploading a JSON file of 8-12 buggy code snippets: each snippet includes a description of the intended behavior, one or more seeded bugs (logical error, off-by-one, wrong return type, missing null check), and a hidden test suite. When the instructor presses 'Start,' all students see the first snippet simultaneously in a Monaco editor embedded in the browser. Students fix the code and click 'Submit.' A server-side sandboxed runner (Python subprocess with a 5-second timeout) executes the hidden tests and returns pass/fail. A correct fix retires the snippet for that student and advances them to the next one. Time-to-fix is recorded per student per snippet. A Supabase real-time channel powers a live leaderboard showing each student's handle, number of snippets completed, and current streak of correct first-attempts. After all students finish or the round timer expires (default 20 minutes), the instructor sees a heat map: rows are snippets, columns are error-type tags (logical, syntax, API misuse, off-by-one), and cell color encodes median time-to-fix across the class. Snippets that took more than twice the class median get flagged automatically with a 'revisit' badge for use in the next lecture. The student view also shows a personal bar chart of their time-per-bug after the round ends, so individuals can compare their weakest error types to the class distribution. No account creation: students join by entering a session code and a chosen handle.
Key features
- Instructor snippet uploader: JSON file with buggy code, intended behavior description, and hidden test suite
- Monaco editor in the browser for in-session code editing and submission
- Server-side sandboxed test runner (Python subprocess, 5-second timeout) for immediate pass/fail feedback
- Supabase real-time leaderboard: handle, snippets completed, first-attempt streak
- Post-round heat map: median time-to-fix by snippet and error-type tag
- Personal bar chart of time-per-bug shown to each student after the round