Build a Classroom Game Show Buzzer Board with Timer Sounds in HTML
A prompt that builds a single HTML quiz-night console with four colored team buzzers, correct and wrong sounds, scoring, and a ticking countdown that ends in a horn.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a front-end developer who builds simple, reliable classroom tools for teachers. Build Brightbell Buzzer Board, a quiz-night game show console in one HTML file with four big colored team buzzers, a countdown timer and synthesized sound effects. Rules:
1. Four team cards (Coral Comets, Golden Owls, Teal Tides, Violet Volts) buzz in with a click, a tap or keys 1-4. The first buzz locks the board, highlights that team, pauses the timer and plays a team-specific chime. Later buzzes are ignored.
2. Host controls: C marks correct (+100, rising fanfare, ends the question), X marks wrong (-50, low buzzer, that team is locked out and the others may buzz again), T starts or pauses the countdown, N resets for the next question, and M mutes. Show these keys on screen.
3. The countdown can be set to 10, 20 or 30 seconds. Show a large number and a shrinking bar, play a soft tick each second and higher ticks in the last 3 seconds, and sound a horn at zero.
4. All sound uses the Web Audio API, created on the first interaction and kept at low volume, with a visible mute button. Use no audio files, external libraries, storage or alerts.
5. Use a dark navy background and white text. Lay the teams out in a 2x2 grid on phones and 4 across on wide screens. Add an aria-live status line, and stop the pulsing animation when prefers-reduced-motion is set.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Naming every key, point value and sound up front leaves the model nothing to guess, so the host controls work on the first run.
- The lockout rules (first buzz wins, a wrong team sits out) are spelled out step by step, which avoids buggy edge cases.
- Asking for Web Audio started on the first tap avoids browser autoplay blocks, so sounds just work.
Paste into ChatGPT, Claude or Gemini, save the code as buzzer.html and open it in a browser, or use the chat's preview or canvas. Put it on a projector and run the quiz from the keyboard.
Common edits
- Change team names, colors or point values (for example +10 and −5) to fit your class or subject.
- Add a fifth or sixth team, or switch the countdown choices to 5, 15 and 60 seconds for lightning or essay rounds.
Keep exploring
More like this
Build a Generative Ambient Chime Toy With Pentatonic Notes in One HTML File
A ready-to-paste prompt that builds a calm ambient music toy where every tap drops a glowing, drifting ripple and a pentatonic chime, with an auto-play mode.
Build a Guided Breathing Exercise App with Soft Rising Tones in One HTML File
A prompt that produces a single-file breathing guide with box, 4-7-8 and coherent patterns, an expanding circle and gentle synthesized sine swells.
Build a Piano Interval Ear-Training Quiz with Streak Scoring in One HTML File
A one-file interval ear trainer that plays two synthesized piano notes, gives four multiple-choice answers, tracks streaks and shows the answer on a keyboard.
Build a Pomodoro Focus Timer with Synth Chimes and Brown Noise in HTML
A single HTML file Pomodoro timer with a progress ring, four-round cycles, distinct synthesized work and break bells, and a toggleable brown-noise bed.
Build a Retro 8-Bit Sound Effect Board with Tunable Chiptune Pads in HTML
A single HTML file with Jump, Coin, Laser and Explosion pads, each with pitch, decay and noise sliders, a randomize button and a live sweep preview.
Build a Sound-Wave Explorer with Live Oscilloscope in a Single HTML File
You get a one-file interactive sound lab where students hear and see sine, square, triangle and sawtooth waves while changing frequency and amplitude.