Phase 11: mark buzzer answers, +1 for a correct one

The host marks the answering team "Got it" or "Wrong" (G / W). Wrong
passes the turn to the next team in the buzz order; Got it closes the
buzzers until "Next question" (B). Undo reverses either mark.

In a direct game a correct answer adds 1 to the team's score in the
game's first criterion, as an ordinary admin score row, so it flows
through the scoring engine (multiplier, placement) and the existing
range/step trigger. The point is written before the mark, so a refused
point never leaves a "correct" with nothing behind it. Judged games
only get the mark: the judges' scores stand.

Needs supabase/migrations/0004_buzz_result.sql applied before deploying.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-05 09:55:50 +02:00
co-authored by Claude Opus 5.5
parent bbcf84bbc3
commit 186a112b95
19 changed files with 562 additions and 133 deletions
+27 -14
View File
@@ -65,9 +65,10 @@ This is the screen used during the night. Must be fast and hard to mess up.
Recent adjustments list with undo.
- Scoreboard visibility: **Visible / Frozen / Hidden** (see 4.3). Big obvious toggle.
- "Open scoreboard" button (new tab) + "Reveal mode" button (see 4.3).
- Buzzers (buzzer games only): who buzzed, in order, with each team's gap behind the first; "Clear buzzers".
- Buzzers (buzzer games only): who buzzed, in order, with each team's gap behind the first;
"Got it" / "Wrong" for the team answering, "Undo" on a marked team, and "Next question".
- Keyboard shortcuts: `N` next game, `P` prev game, `H` cycle visibility, `T` start/pause timer,
`B` clear buzzers, `?` help.
`G` got it, `W` wrong, `B` next question (clears the buzzers), `?` help.
### 4.3 Scoreboard (`/s/[token]`)
- Projector-first, 16:9, readable from the back of a hall.
@@ -111,24 +112,36 @@ Played by the scoreboard page, so they come out of the projector PC's speakers.
- Timer: a tick for each of the last 10 seconds (sharper for the last 3) and a buzzer at zero.
- Browsers only allow sound after a click on the page, so the scoreboard has a "Turn sound on"
button. The choice is remembered, but after a reload one click anywhere is needed again.
- Buzzer: a two-note ding when a team is first to buzz.
- Buzzer: a two-note ding when a team starts answering, a rising arpeggio for "got it" and two
falling notes for "wrong".
- Sounds are synthesised in the browser (no audio files). With reduced motion the drum-roll is skipped.
### 4.7 Buzzers (`/b/[token]`)
For "first to answer" games. A game opts in with the "Teams buzz in" checkbox; scoring is unchanged
(the host or the judges still enter the points).
For "first to answer" games. A game opts in with the "Teams buzz in" checkbox.
- Every team has one buzzer link for the whole night. Someone on the team opens it on a phone:
team name, the current game, and one big "Buzz" button.
- The button works only while the current game uses buzzers and isn't done. Otherwise the page
says there's no buzzer for this game, and wakes up by itself when one starts.
- The server decides the order, using the database's clock — never the phones' clocks.
- A team buzzes once per question; pressing again does nothing. Later teams can still buzz, so
the host knows who is next if the first answer is wrong.
- The phone shows "You buzzed first!" (the screen turns the team's colour) or its place and who was first.
- The control room lists the order with the gap behind the first buzz ("+0.42s"). "Clear buzzers"
(or `B`) empties it for the next question.
- The scoreboard shows "{Team} buzzed!" in the team's colour, with the following teams after it,
and plays a ding. It is not a score, so it shows whether scores are visible, frozen or hidden.
- A team buzzes once per question; pressing again does nothing. Later teams can still buzz and
queue up behind the team answering.
- The team answering is the earliest buzz the host hasn't marked. The host marks it:
- **Got it** (`G`) — the question is decided and the buzzers close. In a direct game the team
gets +1 in the game's first criterion (so the point follows the game's multiplier and
placement rules like any other score). In a judged game nothing is added: the judges score.
- **Wrong** (`W`) — that team is out for this question and the turn passes to the next team
in the buzz order. With nobody waiting, the buzzers stay open for the other teams.
- **Undo** on a marked team removes the mark, and takes the point back if it was "got it".
- **Next question** (`B`) clears everything and opens the buzzers again.
- If the point can't be added (the score is at the criterion's maximum, or +1 doesn't fit its
step), the answer stays unmarked and the host sees why.
- The phone's screen turns the team's colour while it is that team's turn ("You buzzed first!
Answer now." / "Your turn! Answer now.") and when it got it. Otherwise it shows the team's
place and who is answering, "Not this time" after a wrong answer, or who got it.
- The control room lists the order with the gap behind the first buzz ("+0.42s") and each mark.
- The scoreboard shows "{Team} buzzed!" in the team's colour with the waiting teams after it,
"{Team} to answer" when the turn passes, and "{Team} got it!". It is not a score, so it shows
whether scores are visible, frozen or hidden (the point itself follows the usual visibility rules).
- The phone asks the browser to keep the screen on while the page is open.
## 5. Non-functional
@@ -141,5 +154,5 @@ For "first to answer" games. A game opts in with the "Teams buzz in" checkbox; s
- Individual contestants within teams (stretch: `participants` per team).
- Multiple admins / co-hosts (stretch).
- Per-game timers (stretch). The event countdown timer is in 4.5; team buzzers are in 4.7.
- Buzzers for individual contestants, automatic points for buzzing first, and locking a team out
after a wrong answer (the host just reads the next team from the order).
- Buzzers for individual contestants, a configurable points value per correct answer, and
penalties for a wrong answer (use the bonus/penalty panel).