Skip to content

fix(backend,event-web): hint hunt targets need no connection (BAC-208) - #380

Merged
hycursion merged 1 commit into
mainfrom
adam/bac-208-stretch-the-hint-hunts-gaps-from-the-real
Nov 16, 2026
Merged

hycursion merged 1 commit into
mainfrom
adam/bac-208-stretch-the-hint-hunts-gaps-from-the-real

Conversation

@hycursion

Copy link
Copy Markdown
Collaborator

Closes the gaps HAR-55 found when it played the hint hunt on the Main Station (BAC-208). Everything changes in the Event Service. The firmware doesn't change.

Summary

 judge(tap) while a round runs
   not a player                      -> "Round running", hint screen's countdown
-  received before the round started -> hint screen, no try
+  received before the round started,
+  or fewer than 2 hints shown
+  while more are to come            -> hint screen, no try          (point 4)
-  fixed answers match every hint    -> "Found a match!", no countdown
+  current answers match every hint  -> "Found a match!", 2 s countdown
+                                       ending on the same lines      (points 1, 2)
   miss with tries left              -> hint screen with "No! n tries left"
-  third miss                        -> "No match", no countdown
+  third miss                        -> "No match", 2 s countdown ending the same (point 1)

 chooseHints(players)
-  target from players with fixed answers
+  target from players with any current answer, fixed or not  (point 2)
  • Point 1. A tap's countdown stays on the station until another tap's countdown replaces it. A miss's countdown came back after a win's 2 seconds and could end on Time's up. The win and the third miss now bring their own countdown.
  • Point 2. Answers are fixed by a first connection, so rounds of participants who hadn't connected ended with No answers yet. AnswersGame.fixedAnswersOf had no other caller and is removed.
  • Point 3. FRO-190's hint panel is merged. It still has to be on the booth screen. Its no_target sentence no longer mentions connections, and while one hint shows it says "Guessing opens with the second hint."
  • Point 4. Adam decided that a guess counts from the second hint, or from the only one.

The result's countdown is 2 seconds, so the result's own LED and sound play in full. Its ending shows the same lines for 2 more seconds with the station's one ending beep, so a result stays about 4 seconds.

Agreement additions for the next version after 0.14

  • Section 4, hint hunt: the target comes from the players who tapped in and answered a question, fixed or not. A guess counts from the second hint, or from the only one.
  • 6.1, the hint hunt's lines: a new row for a player's tap before the second hint. The won and third-miss rows each gain a 2-second countdown. The bullets cover unfixed answers, the second-hint rule, the result countdown and its ending beep, and the no_target wording.
  • 9.22: no_target means no player who tapped in has answered a question.
  • Section 13: the running card's "Guessing opens with the second hint." and the new no_target sentence.
  • Section 15: one changelog row for BAC-208.

Evidence

Event Service, hint-hunt.test.ts, with the old code and with the new:

a win straight after a miss replaces the miss's countdown            ✗ countdown undefined  ->  ✓ { seconds: 2, lines: won, ending: won }
a third miss straight after a miss replaces the miss's countdown     ✗ countdown undefined  ->  ✓ { seconds: 2, lines: lost, ending: lost }
joined players with current answers can be picked, fixed or not      ✗ [player-two]         ->  ✓ [player-one, player-two]
a round whose players haven't connected picks a target and ... wins  ✗ no_target            ->  ✓ Q1A, then "Found a match!"
a tap before the second hint shows the hint screen, no win, no try   ✗ accepted at 30 s     ->  ✓ cooldown, 3 tries, wins at 40 s

The map tests in event-web cover both running lines and the new no_target sentence.

  • Event Service: 788 tests pass, and tsc is clean.
  • Event screens: 1312 tests pass, and typecheck is clean.
  • The updates site builds, and pnpm check:dashes passes.

Checks for a person

  • A round on a real station on production: a win straight after a miss shows Found a match! and then the idle screen, with no Next hint... or Time's up after it.
  • The hint panel on the booth screen (point 3).

Merge Danger

Door: two-way

No migration and no stored data changes. A revert brings back the old rules.

Blast Radius: hint-hunt

Only hint hunt stations and the map's hint hunt card. fixedAnswersOf had no other caller. Follow-up BAC-209: a hint's station message held behind a tap's result can still show after a win. The second-hint rule makes that likelier, and the ticket lists the options.

🤖 Generated with Claude Code

HAR-55 played the hint hunt on a real station and found three gaps, which
this closes in the Event Service with no firmware change.

The target can be any player who tapped in and answered a question, fixed
or not, and a guess is judged against the player's answers when the tap
arrives. Two of HAR-55's five rounds ended with no target because nobody
had connected yet. AnswersGame's fixedAnswersOf, added only for the hint
hunt, goes.

A guess counts from the second hint, or from the only one (Adam's call on
point 4). An earlier tap by a player shows the hint screen and costs no
try, as a tap before the round starts does.

A win and a third miss give a 2-second countdown that ends on their own
lines. The station keeps a tap's countdown, so a miss's came back after
the result and could end on "Time's up" after a win.

The map says "Guessing opens with the second hint." while that applies,
and no_target's sentence no longer mentions connections. The agreement
draft after 0.14 (sections 4, 6.1, 9.22, 13 and the changelog),
CONTEXT.md and screens.md follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@hycursion
hycursion merged commit 1366054 into main Nov 16, 2026
7 of 8 checks passed
@hycursion
hycursion deleted the adam/bac-208-stretch-the-hint-hunts-gaps-from-the-real branch November 16, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant