Repository navigation
feat(backend): a station can run the hint hunt (BAC-203) - #376
Merged
hycursion merged 1 commit intoNov 16, 2026
Merged
Conversation
… (BAC-203) A fifth station game, `hint_hunt`. A tap opens 30 seconds of tapping in, and a round needs 3 players from 2 groups. The target is picked at random from the players who tapped in with fixed answers, and the station shows one of their answers as a hint at the start and every 10 seconds, up to four. Any player who matches every hint shown wins; a miss costs one of 3 tries; nobody winning within 10 seconds of the last hint loses the round. The target is never stored, shown or sent. Hints reach the station as station messages, sent once by a poll of GET /api/v1/map/hint-hunt (own limit of 90 a minute) or a best-effort timer, since Cloud Run throttles the processor between requests. Shown hints and the timeout go by the clock alone. The agreement's next version gets section 4's bullet, 6.1's lines, 6.2's idle lines, 9.22 and its rate limit; CONTEXT.md defines hint hunt, target and hint. Migration 0034 adds the two tables. Co-Authored-By: Claude Opus 5.5 <[email protected]>
hycursion
deleted the
adam/bac-203-stretch-a-station-gives-hints-from-one-players
branch
November 16, 2026 14:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A fifth station game,
hint_hunt("Hint hunt"), on the Event Service. Players tap in, the station shows hints from one player's answers, and people from every group ask each other until someone who matches taps.Hints 2 to 4 reach the station as station messages (11.12). Cloud Run throttles the processor between requests, so a timer alone can't be trusted:
The ticket's two open points went as it suggested: a player whose answers aren't fixed can tap in, is never the target, and their guess is a miss; a miss shows only the tries left.
Agreement additions for the next version, after 0.14
All in this PR's
apps/API-AGREEMENT.md, marked "for the next version, after 0.14 (BAC-203)":idhint_hunt,name"Hint hunt"Hint hunt/Tap to join(and the open seat's, which were missing there)GET /api/v1/map/hint-huntCONTEXT.mddefines hint hunt, target and hint. The updates site has a changelog line.Evidence
PUT /api/v1/admin/stations/{id}/gamewithhint_huntanswersvalidation_failed.After: 27 hint hunt tests through the hand-off and map routes, and the full Event Service suite: 785 passed in 52 files. Typecheck, lint, format, migration and dash checks pass, and the updates site builds.
Merge Danger
Door: two-way
Migration 0034 only adds two tables (
hint_hunt_rounds,hint_hunt_players). It needs applying on staging and production before a deploy that includes this.Blast Radius: small
Only stations set to
hint_huntrun it. Shared code touched:GameDepsgainsdb,nowandanswers, andAnswersGamegainsfixedAnswersOf(). The station board lists one more game, last.Not in this PR:
🤖 Generated with Claude Code