Technical guide

Party games

Good Question

The answer-and-question quiz board. Pick a square, race to buzz in, answer with a question, and bet it all on the Last Question.

Checked against the code on 2026-11-22. Play Good Question

On this page
  1. At a glance
  2. The library
  3. The rules in code
    1. The state
    2. A round’s introduction
    3. A clue, start to finish
    4. Judging a typed answer
    5. “Close enough?”
    6. Double Down
    7. Between rounds
    8. The Last Question
    9. Away and absent seats
  4. What each seat sees
  5. The bots
  6. The interface
  7. Its look
  8. Trophy Case
  9. Rating
  10. Testing

Good Question is a quiz board for two to eight seats, bots welcome. Six categories of five clues, the values rising down each column; each clue is a statement, and you answer it as a question (“This planet spins on its side.” “What is Uranus?”). The picker picks a square, everyone races to buzz in, and the earliest tap answers. Round one, round two at double the values, then the Last Question, which everyone bets on in secret. The Short game drops round two.

It plays the classic TV quiz format with our own name, moments, look and clues, and it’s its own game, apart from Quiz Whiz: only the typed-answer matcher is shared. David’s calls of 2026-11-09 are in docs/good-question.md. The name is registered as a trademark for boxed party games (Spin Master’s, and another); David’s call was to keep it for a free browser game (that doc’s “Names” has what the search found). It’s a table game on the table service. Its buzzer leans on the room kit’s clock, which every page learns by pinging the server (ADR 0089, the front end).

At a glance#

Part Where
Rules: the board, buzzing, answering, Double Down, the Last Question tables/good_question/rules.py
Bots tables/good_question/bots.py
The clue library and dealing a game from it tables/good_question/library.py
Checking a typed answer (shared with Quiz Whiz) tables/answers.py
The table: the seats, the board, the stage, the dock games/static/games/good-question/table.js
The entry: the lobby’s settings games/static/games/good-question/app.js
Its look: tokens, drawers, cards and the stamp; the table games/static/games/good-question/good-question.css, games/static/games/good-question/table.css
How to play games/rulebooks/good-question.md
Tests tests/test_good_question.py
The library’s check tools/good-question/library.py
A table set to a moment tools/good-question/stage.py
A whole game played in a browser tools/good-question/play.mjs
Rules and design notes docs/good-question.md

The library#

A category is a title and five clues, rows 1 to 5, rising in difficulty, kept in TOML files under tables/good_question/library/. Each clue has its words, its answer, the other ways to type it (accept) and the question it’s answered with (ask: “What is”, “Who was”…); a Last Question has a title that hints without giving it away. The loader refuses a category without one clue in each row, an ask that doesn’t start with Who, What, Where or When, and an id used twice.

The library holds 150 categories and 50 Last Questions, 800 clues in all, about ten categories in each of fifteen areas; tools/good-question/library.py prints the count. A game is dealt six categories a round and one Last Question. None comes back at a table until the library runs out: what’s been played is carried from game to game (_carry, read back as settings["_before"]). A round’s six come from as many different areas as it can, so a board isn’t all geography:

tables/good_question/library.pydeal · lines 121–151
def deal(rng, rounds: int, used: dict | None = None) -> tuple[list[list[str]], str, dict]:
    """Six categories a round and one Last Question, none played at this
    table before until the library runs out (`used`, carried from game to
    game: {"cats": [...], "lasts": [...]}). Returns the rounds, the Last
    Question and what's used now. A round's six come from as many areas as
    the library allows, so a board isn't all geography."""
    cats, lasts = catalog()
    used = used or {}
    had = [c for c in used.get("cats", []) if c in cats]
    fresh = [c for c in sorted(cats) if c not in had]
    if len(fresh) < 6 * rounds:
        had, fresh = [], sorted(cats)
    rng.shuffle(fresh)
    picked: list[list[str]] = []
    for _ in range(rounds):
        six: list[str] = []
        for want_new_area in (True, False):
            for c in fresh:
                if len(six) == 6:
                    break
                taken = {cats[x]["area"] for x in six}
                if c not in six and (not want_new_area or cats[c]["area"] not in taken):
                    six.append(c)
        fresh = [c for c in fresh if c not in six]
        picked.append(six)
    had_lasts = [q for q in used.get("lasts", []) if q in lasts]
    open_lasts = [q for q in sorted(lasts) if q not in had_lasts] or sorted(lasts)
    if len(open_lasts) == len(lasts):
        had_lasts = []
    final = rng.choice(open_lasts)
    return picked, final, {"cats": had + [c for six in picked for c in six], "lasts": had_lasts + [final]}

The rules in code#

The state#

Everything a game needs is in its JSON state: the rounds’ categories, the Last Question, where the Double Downs hide (dd), the board (each square None until played, then the seat that got it or -1), the scores, the picker, and the clue being played. The phase moves the game along, and every phase but pick has a clock: intro at a round’s start; read, buzz, rung, answer, stamp and end for a clue; dd and bet for a Double Down; vote for “Close enough?”; scores between rounds; and last_cat, last_bet, last_answer, last_reveal and last_end for the Last Question. tick takes each step that’s due:

tables/good_question/rules.py_step · lines 729–784
def _step(state: dict, now: float) -> bool:
    """One thing that's due, done. True if anything was."""
    due = _due(state)
    if due is None or now < due:
        return False
    phase, clue = state["phase"], state["clue"]
    if phase == "intro":
        _to(state, "pick", None)
    elif phase == "rung":
        _answer_clock(state, now)
    elif phase == "stamp":
        _open_buzzer(state, round(now, 3))
    elif phase == "pick":
        _auto_pick(state, now)
    elif phase == "dd":
        _to(state, "bet", now + BET_SECS)
    elif phase == "bet":
        # (Time ran out: the smallest bet.)
        _place_dd(state, clue["picker"], MIN_BET, now)
    elif phase == "read":
        if clue["dd"]:
            clue["answerer"] = clue["picker"]
            _answer_clock(state, now)
        else:
            _open_buzzer(state, clue["opens"])
    elif phase == "buzz":
        if clue["buzzes"]:
            _decide_race(state, now)
        else:
            log.event(state, "no_buzz", cat=clue["cat"], row=clue["row"])
            _end_clue(state, now)
    elif phase == "answer":
        _answered(state, clue["answerer"], "", False, now)
    elif phase == "end":
        _after_clue(state, now)
    elif phase == "vote":
        _settle(state, now)
    elif phase == "scores":
        _after_scores(state, now)
    elif phase == "last_cat":
        _to(state, "last_bet", now + LAST_BET_SECS)
        if not state["last"]["eligible"]:
            _last_clue(state, now)
    elif phase == "last_bet":
        for s in state["last"]["eligible"]:
            state["last"]["bets"].setdefault(str(s), 0)
        _last_clue(state, now)
    elif phase == "last_answer":
        _last_reveal(state, now)
    elif phase == "last_reveal":
        _after_reveal(state, now)
    elif phase == "last_end":
        _finish(state, "done", now)
    else:
        return False
    return True

Scores are kept per side, and each seat is a side of its own (sides). There are no teams in 2.0.0 (David’s call 13), but a clue’s lockout, a score and a bet already belong to a side, so teams would make a side of several seats without changing the state’s shape.

A round’s introduction#

A round opens on its categories, read out one at a time before anyone picks (David, 2026-11-09: “Category Introduction actually moves too fast”). The stage says “Here are your six categories.” for 1.4 seconds, then gives each category a beat of 3.4 seconds in four parts (David, 2026-11-10): it fades up, its title big with a one-line description under it; it holds about two seconds; then for its last 0.6 seconds but a gap it slides and shrinks back onto its guide card at the head of its column, its title still on it and the rest fading (one scale, its width onto the guide card’s, so the title shrinks without stretching) (flyHome measures both cards, so it lands where the guide card is at any size, a phone’s side board too); and once it lands, the guide card settles with its title and the stage stays empty 0.4 seconds before the next. The stage has no cover during the introduction: the drawers dim instead, so the cream guide cards stand out and you see each one fill. With reduced motion there’s no flight: the card goes and its guide card fills as the flight would start. Then “X picks first” for 1.2 seconds, and the phase moves to pick. Each of those goes up on the same cream card, so the board never shows through the words. Nobody can pick or buzz during it. The page works out which category to show from intro_from and the timing in the view, so every page shows the same one at the same moment:

Each card of the introduction is a status a screen reader reads, its parts (“Category 2 of 6”, the title, what it’s about) kept apart by a hidden full stop, so they aren’t run together (the accessibility audit, 2026-11-14).

tables/good_question/rules.pyintro_secs · lines 167–170
def intro_secs() -> float:
    """How long a round's introduction runs: its name, each category's beat,
    then who picks first."""
    return round(INTRO_HEAD + SIX * INTRO_EACH + INTRO_TAIL, 3)

Every category has an about line in the library: 3 to 14 words, no question, and never a clue’s answer (tools/good-question/library.py checks). A category whose title is a play on words is marked wordplay = true, and its line hints at that without giving the trick away (“A wordplay category: look closely at the title.”).

A clue, start to finish#

Picking a square starts a clue. Its words go up, and the reading bar fills for 1.6 second (the drawer lifting) plus a little per word, from 4 to 8 seconds. That stands in for a host reading aloud. opens, the moment buzzing opens, is on the server’s clock, so every page opens its buzzer at the same instant however late the clue reached it:

tables/good_question/rules.pyread_secs · lines 217–219
def read_secs(text: str) -> float:
    """How long the reading bar takes to fill: a little per word."""
    return round(min(READ_MAX, max(READ_MIN, READ_BASE + READ_WORD * len(text.split()))), 2)

The buzzer stays open 5 seconds. A buzz carries its moment: at, when it was tapped, by the page’s corrected clock, and travel, the page’s own travel time. The rules keep a person’s stamp honest: no earlier than the buzzer opening, nor further back than their travel time (up to 0.6 seconds) and 0.15 more. A tap more than 0.25 seconds before the buzzer opened is too soon; less is a clock’s slip, and counts as the buzzer opening. A bot doesn’t stamp: its move is its reaction time after the buzzer opened, and its buzz counts as arriving then.

tables/good_question/rules.pybuzz · lines 289–315
def buzz(state, seat, action, now):
    """A buzz, stamped with the moment it was tapped on the server's clock
    (`at`, seconds) and the page's own travel time (`travel`). A person's
    stamp may be no earlier than the buzzer opening, nor further back than
    their travel time and a little; a bot's is its reaction time."""
    phase, clue = state["phase"], state["clue"]
    if phase == "read" or (phase == "dd" and clue):
        raise Illegal("Too soon. Wait for the bar to fill.")
    if phase == "stamp":
        raise Illegal("Wait a moment: the buzzer opens again for everyone else.")
    if phase in ("rung", "answer", "end", "vote") and clue and clue["answerer"] is not None and not clue["dd"]:
        # Someone else's buzz won the race: tell this seat, privately, whether
        # it tapped first and got here too late.
        at = float(action.get("at") or now)
        if seat != clue["answerer"] and clue.get("won_at") is not None:
            log.event(state, "late", to=[seat], seat=seat, winner=clue["answerer"],
                      first=at < clue["won_at"], by=round(abs(at - clue["won_at"]), 2))
            return
        raise Illegal("You're answering.")
    if phase != "buzz":
        raise Illegal("There's nothing to buzz for.")
    if not _can_buzz(state, seat):
        raise Illegal("You've had your go at this one.")
    if str(seat) in clue["buzzes"]:
        raise Illegal("You've buzzed.")
    buzzer.press(clue["buzzes"], seat, action, now, clue["opens"], seat in state["bots"], closes=clue["closes"],
                 too_soon="Too soon. Wait for the bar to fill.", closed="Buzzing has closed.")

The stamping and the race are tables/buzzer.py, shared with any game that has a race to press first. The race is decided by stamps, not arrivals. When the first buzz arrives, the rules wait 0.5 seconds for an earlier tap still on its way, then give the clue to the earliest stamp among the buzzes in by then. While they wait, no one sees who has buzzed (you see your own), so the table’s until is when buzzing closes, not when the race will be decided. A buzz that tapped first but arrived after the wait is told so privately, with by how much (a late line). That’s rare on any working connection.

tables/good_question/rules.py_decide_race · lines 326–341
def _decide_race(state: dict, now: float) -> None:
    """The earliest stamp among the buzzes that arrived within GRACE of the
    first answers; ties go to the one that arrived first, then the lower seat."""
    clue = state["clue"]
    won = buzzer.decide(clue["buzzes"])
    at, winner, by = won["at"], won["seat"], won["by"]
    clue["won_at"] = at
    clue["answerer"] = winner
    clue["first_by"] = by
    st = state["stats"][winner]
    st["buzzes"] += 1
    if by is not None and (st["fastest"] is None or by < st["fastest"]):
        st["fastest"] = by
    log.event(state, "buzzed", seat=winner, by=by, against=won["against"])
    # A held beat says whose buzz won before their clock starts.
    _to(state, "rung", round(now + RUNG, 3))

The winner has 15 seconds to type; the page sends whatever’s typed when time runs out, and the rules wait 1.5 seconds more for it to arrive. Before the box opens, the stage holds the winner’s name with “buzzed in” for 1.2 seconds (rung), so the whole table sees who got it. Right adds the value, and that player picks next. Wrong takes it away and locks that side out of the clue; the wrong stamp stays up for 1.5 seconds (stamp, when nobody can buzz), then the buzzer reopens for everyone else. A clue’s answer stays on the card for 5 seconds before the next pick. The beats were slowed after David’s first game (“too fast”), and the bots think longer before a pick or an answer. Nobody buzzing, or everyone wrong, ends the clue: “That one stumped everyone.”

Judging a typed answer#

You type only the answer; the page phrases it as a question for you. Whatever’s typed is checked loosely with Quiz Whiz’s matcher (Checking a typed answer), with and without any question words someone typed anyway (“what’s the Mississippi”). While a clue is live the app decides alone, since showing the table the answer would give it away: right, or a near miss the matcher forgives by itself, counts.

tables/good_question/rules.pycheck · lines 357–365
def check(text: str, accept) -> bool:
    """Right, or a near miss the matcher forgives by itself (one slip in an
    answer up to ten letters, two in a longer one; three letters or fewer
    exact; a different number never), with or without the question words."""
    for said in dict.fromkeys([text, strip_question(text)]):
        found = judge(said, accept)
        if found["verdict"] == "right" or (found["verdict"] == "close" and found["near"]):
            return True
    return False

“Close enough?”#

When a clue ends, its answer shows to everyone for 5 seconds. If it had a wrong answer and someone at the table besides its answerer could vote, it stays up 8 seconds instead, and any person may ask “Close enough?” of each wrong answer, once. The people at the table but the answerer then vote for up to 20 seconds. Bots never ask or vote.

tables/good_question/rules.py_settle · lines 507–528
def _settle(state: dict, now: float) -> None:
    """More yes than no counts it, and a tie counts (as in Quiz Whiz); no
    votes at all doesn't. Counted, the loss is undone and the stake added."""
    v = state["vote"]
    yes = sum(1 for x in v["votes"].values() if x)
    no = len(v["votes"]) - yes
    counted = bool(v["votes"]) and yes >= no
    back = v["back"]
    answers = state["last"]["shown"] if back == "last_end" else state["clue"]["answers"]
    a = answers[v["answer"]]
    if counted:
        a["counted"] = True
        _add(state, a["seat"], 2 * a["stake"])
        state["stats"][a["seat"]]["right"] += 1
        state["stats"][a["seat"]]["wrong"] -= 1
        if back == "last_end":
            a["after"] += 2 * a["stake"]
    log.event(state, "counted" if counted else "not_counted", seat=a["seat"], yes=yes, no=no, stake=a["stake"],
              score=state["scores"][side_of(state, a["seat"])])
    state["vote"] = None
    more = _raisable_now({**state, "phase": back})
    _to(state, back, now + (CLOSE_SECS if more else 2.0))

Counted, the loss is undone and the stake added; who picks next doesn’t change.

Double Down#

One square in round one and two in round two (in different categories) hide a Double Down, never in the top row and more often lower down. The stage holds “Double Down!” for 3.5 seconds, then the picker bets, with 30 seconds to do it:

tables/good_question/rules.pybet_range · lines 564–568
def bet_range(state: dict, seat: int) -> tuple[int, int]:
    """From 5 up to your score, or up to the round's top value (1,000, then
    2,000) if your score is less: the show's rule (D15, 2026-11-11)."""
    score = state["scores"][side_of(state, seat)]
    return MIN_BET, max(score, _values(state)[-1])

That’s the show’s rule, which David chose over capping it at your points (D15, 2026-11-11): with 300 points you may still bet 1,000 in round one or 2,000 in round two. The bet screen says so in words when the top is more than you have (“You have 300, but this round lets anyone bet up to 1,000.”), and bots bet inside the same range. The bet shows to everyone, then the clue; only the picker answers, and wins or loses the bet. No bet in time, or an away picker, bets the least.

Between rounds#

When every square is played, the scoreboard holds for 10 seconds. Round two starts with whoever has the lowest score. Someone waiting to sit in may take a bot’s seat, and its score, at a new round (round_no).

The Last Question#

The category goes up alone. Everyone with a score above zero bets in secret, from 0 to their score, within 45 seconds; the table sees who has bet, never how much. Players at zero or below answer for fun, with no bet. Once everyone has bet, the clue goes up and everyone types at once for 30 seconds. Then the reveal: one player a beat, 6 seconds each, lowest score first, each showing their answer, right or wrong, their bet and their new score, and whether they just took the lead. A wrong answer can be put to “Close enough?” after the last beat. The most points wins; a tie is shared.

Away and absent seats#

An away picker’s pick waits 5 seconds, then the board picks the lowest value left in the leftmost category with any left, and says so. An away seat bets the least on a Double Down and 0 in the Last Question. Every answer clock runs out as it does for anyone, so only a pick holds up the table (holds_up); the host can hand a stalled picker’s seat to a bot. It doesn’t set away_cover (the service): each of its decisions already has an answer for someone away (the board picks, the least is bet, a clock runs out), so no bot needs to take the seat, and someone who comes back finds it still theirs.

tables/good_question/rules.pyaway · lines 824–837
def away(state: dict, seat: int, now: float) -> None:
    """An away picker's pick waits AWAY_PICK, then the board picks; an away
    seat bets the least on a Double Down and 0 in the Last Question. (An
    answer clock runs out as it does for anyone.)"""
    phase = state["phase"]
    if phase == "pick" and seat == state["picker"]:
        if state["away_pick"] is None:
            state["away_pick"] = now
    elif phase == "bet" and seat == state["clue"]["picker"]:
        _place_dd(state, seat, MIN_BET, now)
        state["seq"] += 1
    elif phase == "last_bet" and away_due(state, seat):
        _last_bet(state, seat, 0, now)
        state["seq"] += 1

What each seat sees#

view(state, seat) keeps secret where the Double Downs are; a clue’s words until it’s opened (a Double Down’s until its bet); its answer until the clue ends; who has buzzed, until the race is decided; the next round’s categories; the Last Question until it’s read; and each seat’s Last Question bet and answer until its reveal. Everything else is public. The contract test’s scramble changes each of those and checks no seat’s view moves.

The bots#

A bot’s level is how often it knows a clue, by the clue’s row, and how fast it buzzes after the buzzer opens:

tables/good_question/bots.pyKNOWS · lines 14–18
KNOWS = {
    "easy": (0.60, 0.45, 0.30, 0.20, 0.10),
    "medium": (0.80, 0.65, 0.50, 0.35, 0.25),
    "hard": (0.92, 0.85, 0.72, 0.58, 0.45),
}
tables/good_question/bots.pyREACT · line 21
REACT = {"easy": (1.0, 2.2), "medium": (0.6, 1.3), "hard": (0.35, 0.8)}  # seconds after the buzzer opens

It never sees the answer: it says whether it recalls it, and the rules fill in what it says. It buzzes when it knows, and now and then when it doesn’t (BLUFF); then it says another clue’s answer from the same category, and is wrong. So that it needn’t remember which buzz was which, its chance of being right once it has buzzed is the share of its buzzes that were knowing ones. Easy picks at random, Medium works down from the top row, Hard goes for the lower rows, where Double Downs hide. On a Double Down, Easy bets at random, Medium half its score, Hard more when it’s behind. In the Last Question, a Hard leader bets just enough to stay ahead of second place doubling up, and the rest bet to pass the leader:

tables/good_question/bots.py_last_bet · lines 59–72
def _last_bet(v: dict, seat: int, level: str, rng) -> int:
    scores = v["scores"]
    mine = scores[_side(v, seat)]
    if level == "easy":
        return _hundreds(rng.uniform(0, mine), 0, mine)
    if level == "medium":
        return _hundreds(mine / 2, 0, mine)
    others = sorted((s for i, s in enumerate(scores) if i != _side(v, seat)), reverse=True)
    best_other = others[0] if others else 0
    if mine > best_other:
        # The leader bets just enough to stay ahead of second place doubling up.
        return max(0, min(mine, 2 * best_other - mine + 1))
    # The rest bet to pass the leader, or everything if they can't.
    return max(0, min(mine, best_other - mine + 1)) if 2 * mine > best_other else mine

The numbers are a first guess, to be tuned by measuring, as the other games’ bots were.

The interface#

games/static/games/good-question/table.js draws the table on the room kit: the seats across the top (on a phone, two to a row), the board, the stage over the board, and the dock under it. A seat is a pocket with the player’s name typed on a card standing in it; on a phone on its side the pocket keeps room under the card for the mark and score, which it had covered (the details check, 2026-11-21). On a laptop the board is the show’s, six columns of five; on a phone it turns on its side, each category a row with its title at the left, so titles read at a size you can read and every drawer is a finger wide.

The stage is where each big moment goes up, over the board (its cover hides the board’s foot line and the crown’s nameplate, which would ghost through behind its heading; a round’s introduction has no cover, so they stay): the clue’s card as the drawer lifts into it; “Double Down!” and the bet; the vote on “Close enough?”; the scoreboard between rounds, with the round’s sweeps, stumpers and Double Downs; the Last Question’s category, its clue, and its reveal, one player a beat. A sweep, a comeback and round two’s start get the house’s announcement as well.

The dock says what’s yours to do, in words, and holds the control for it: the Buzz button (the space bar on a laptop), the answer box, the bet. The space bar buzzes whenever buzzing is open and never scrolls the page; it, the arrow keys and Enter are the house’s always-on keys, so the table hands them to shortcuts in its always map (in the single-key map the house ignores them; David, 2026-11-09: “Space bar doesn’t seem to work to buzz in”). Enter picks only when no other control has focus. tools/good-question/play.mjs presses a real Space on a laptop-sized run, once the instant the reading bar fills, before the page has heard the buzzer open, and fails unless that press counts. Buzzing has no first-time card (the room kit’s prompt, which your pick still gets): over the board it hid the clue for half of the five seconds you have to buzz, so the dock teaches it in place, “You can buzz when the bar is full.” under a dashed Buzz button while the bar fills, then the button lit and “Buzz now if you know it.” A tap on Buzz before the bar is full locks it for half a second and says “Too soon. Wait for the bar to fill.” “Before the bar is full” is by the room kit’s clock, the one the bar fills by, never by the phase the page last heard: that turns to buzz a moment later, when the server’s update arrives, and a press in that moment was once locked out as too soon (David, 2026-11-21: “the space bar didn’t seem to work”; pressed the instant the bar filled, 10 presses out of 10 were refused). The server catches its own clock up before it judges a buzz; a press while the page still says read (the bar’s last 50 ms, or before the update arrives) keeps its moment and is sent once the buzzer is open on the server too (40 ms after opens, well inside the stamp’s slack), so the press counts. A refused or lost press can be pressed again. A Double Down’s read has a bar too, but only its finder answers, so nothing buzzes there. A button reached with Tab keeps the space bar for itself. A buzz is stamped with the moment it was tapped by the room kit’s clock, and sent with the page’s travel time:

games/static/games/good-question/table.jsGoodQuestionTable.buzz · lines 949–980
/** A buzz: stamped now, by the room kit's clock (docs/adr/0089). A tap
 * before the bar's full locks the button for half a second. */
buzz() {
  const { v } = this;
  const c = v.clue;
  // (A Double Down's read has its bar too, but only its finder answers: nothing to buzz.)
  if (!this.seated || !c || c.dd || c.locked.includes(this.me) || c.buzzed || this.buzzSent === v.step) return;
  const now = this.now;
  if (now < this.lockedUntil) return;
  // (Too soon by the clock, the one the bar fills by: not by the phase this page last
  // heard, which turns to buzz a moment after the bar is full, once the server's word
  // arrives. A press in that moment was locked out as too soon: "the space bar didn't
  // work", David, 2026-11-21. The server catches its clock up before it judges a buzz.)
  if (now < (c.opens ?? Infinity) - 0.05) {
    this.lockedUntil = now + LOCK_MS / 1000;
    this.dockKey = null;
    this.draw();
    return;
  }
  if (v.phase !== 'buzz' && v.phase !== 'read') return;
  const travel = (this.table.travel ?? 0) / 1000;
  const send = () => this.run(async () => {
    // (refused or lost: the player may press again)
    try { await this.table.act({ type: 'buzz', at: Math.round(now * 1000) / 1000, travel: Math.round(travel * 1000) / 1000 }); } catch (e) { this.buzzSent = null; throw e; }
  });
  // (Pressed in the bar's last moment, or before this page has heard the buzzer
  // open: the press keeps its moment and goes once the buzzer's open on the server
  // too, a few hundredths later, well within the stamp's slack (tables/buzzer.py).)
  const hold = v.phase === 'read' ? Math.max(0, (c.opens - now) * 1000) + 40 : 0;
  this.buzzSent = v.step;
  if (hold) setTimeout(send, hold); else send();
}

The answer box phrases the answer as a question for you (“What is” before what you type, “?” after); whatever’s typed is sent when the clock runs out. With a phone’s keyboard up the board steps aside, the seats fold to one strip of marks and scores, and the clue’s card sits above the box, so the clue, what you’re typing and the clock all stay in view.

The dock is drawn once for each moment; its countdowns and the answer clock’s ring are kept current in place, so a button is never swapped out from under a press.

Its look#

The personality sheet (families): a library card catalog, David’s pick of 2026-11-09. A party game’s own look on the room kit.

  • The ground: library green, the room’s.
  • The board: a cabinet of oak drawers under a lamp’s glow, with a crown and a brass nameplate on top and a plinth under it. Each square is a drawer front with a brass label frame holding a cream card with its value, and a cup pull; the drawer being played slides out, and a played square is an empty slot. The categories are typed guide cards across the top, blank until each one’s big card lands on it in the introduction. Pointing at a category’s name with a mouse, on its guide card or at the head of a clue’s card, shows the house’s tooltip with its title and its about line (David, 2026-11-22: “Hovering over a category name should immediately bring up a nicely designed tooltip that shows the title and description”; Tooltips, catTip in games/static/games/good-question/table.js). The introduction’s big card already shows both, so it has none.
  • The seats: pockets along the top, each a name slip, a score, and a tag that says what’s happening (“Buzzed in”).
  • A clue: a cream catalog card, typed, with its header ruled in red and a punched hole at its foot. No faint ruled lines across it (David, 2026-11-09: they didn’t sit under the words, and a card mixes too many type sizes for them to sit right everywhere).
  • Right and Wrong: a date stamp in the card’s foot, a solid block of green or red with cream letters, ringed in the answerer’s seat color with their mark. The card’s foot grows to hold it, so it never covers a word (David, 2026-11-09).
  • The turn color: lamp gold, only ever a ring or an outline, drawn inside the edge of what it marks (your seat’s ring, and a buzz’s lit seat with its soft second ring, are inset: the details check found them outside, 2026-11-21) (your seat, the drawer the keys are on, the answer box; never round the whole board when it’s your pick: that outline sat outside it and boxed a group, gone 2026-11-22, Your move) and the primary button’s fill. No seat color and no turn color ever fills a drawer or a card (David, 2026-11-09: a wave of the winner’s sky blue didn’t fit).
  • The win: behind the result sheet, every drawer turns over in a wave to a brass back with the winner’s mark; the celebration is the room’s, once a game, and a rating high’s best when you didn’t win.
  • Faces (OFL, bundled): Young Serif for headings (“Double Down!”, “You win!”), Courier Prime, a typewriter, for the category labels and the cards, and Figtree for everything else you read or press.
  • Panels on the stage are solid, so the board never shows through words.

Trophy Case#

Its secret trophies in the Trophy Case wait with it until it’s listed. Perfect board is eight or more buzzes in a game, every one right, read from each seat’s stats. All in is every point bet on the Last Question from behind, answered right, and a win: result() keeps each seat’s Last Question as numbers only, whether it was right, the bet, the score before it and the seat’s side (last), never the answer typed. Counts and flags only, never chat or words typed (ADR 0095).

Rating#

A kept game is rated with the other table games on the shared hooks (Ratings): places by final score, ties sharing. Its bots’ fixed ratings are the default spacing until they’re measured (ratings/tables.py).

Testing#

tests/test_good_question.py says the rules as sentences: the board and the deal, the reading bar and the buzzer, the earliest tap winning a race it arrived second in, a late buzz told privately, stamps held to their travel time, right and wrong and time running out, loose judging, “Close enough?” and its tie, Double Down and its range, the rounds, sweeps and comebacks, the Last Question’s secret bets and reveal, away seats, and bots playing whole games, the harder ones scoring more. It also runs the contract every table game meets (TableGameContract), with a scramble that changes every secret above. npm run check:good-question:library holds the library to its rules (Testing). tools/good-question/play.mjs (npm run check:good-question:play) plays a whole short game in headless Chrome, buzzing, answering and betting; tools/good-question/stage.py sets a table to a moment (your pick, a Double Down, a late round two with five-figure scores, the Last Question) for the details check and for playtests.