Technical guide

Party games

Drawing a Blank

The team drawing game for 4 to 20 people, where one draws a secret word against the clock while their team shouts guesses, and teams race round a board.

Checked against the code on 2026-11-21. Play Drawing a Blank

On this page
  1. At a glance
  2. The rules in code
    1. The board
    2. A turn
    3. All Play and the final word
    4. Typed guesses
    5. The referee
    6. Someone away
    7. Drawings and keeping
    8. The result
  3. Secrets
  4. The interface
  5. Testing
  6. Changing it
  7. Known limitations

Drawing a Blank is the classic team drawing game, the second of G5’s drawing games in v2.0.0 (David’s calls of 2026-11-12, docs/drawing-a-blank.md). Two teams of people in one room or on a call, each on their own phone: one draws a secret word while their team shouts guesses before the pencil runs out; a right guess rolls the die and moves the team’s piece; All Play words are drawn by both teams at once; the first team to the Finish wins with its final word.

It runs on the table service with the shared two-team turns (ADR 0093), draws with the drawing kit (ADR 0097), deals from the drawing games’ word bank, and wears Mixed Messages’s sketch-pad look (David’s call 17b): Mixed Messages. People only (ADR 0031); rated as two teams.

At a glance#

Part Where
The rules: the board, turns, the clock, All Play, the final word, the referee, the view tables/drawing_a_blank/rules.py
The table: the teams and the board, Ready, drawing, watching, the turn’s end, the gallery games/static/games/drawing-a-blank/table.js
Its entry and its settings in plain words games/static/games/drawing-a-blank/app.js
Its look games/static/games/drawing-a-blank/drawing-a-blank.css: the sketch pad’s tokens, the same as Mixed Messages’s, which a test holds equal (the token check wants every room game’s own file); the pad, the pencil and the dock are Mixed Messages’s table.css and sketchpad.js; its own pieces (the board, the teams, the turn’s end) are games/static/games/drawing-a-blank/table.css
How to play games/rulebooks/drawing-a-blank.md
Tests; the playtest’s stage tool tests/test_drawing_a_blank.py, tools/drawing-a-blank/stage.py, npm run check:drawing-a-blank:play (tools/drawing-a-blank/play.mjs)

The rules in code#

The board#

A track from Start to the Finish, 30 squares (a Short game 20): each square one of the bank’s categories in turn, an All Play square every 5th.

tables/drawing_a_blank/rules.pyboard · lines 57–68
def board(length: int) -> list[str]:
    """The squares, Start (0) to the Finish (`length`): each a category, an
    All Play square every ALL_PLAY_EVERY, Start and Finish none."""
    out = ["start"]
    k = 0
    for i in range(1, length):
        if i % ALL_PLAY_EVERY == 0:
            out.append("all")
        else:
            out.append(words.CATEGORIES[k % len(words.CATEGORIES)])
            k += 1
    return out + ["finish"]

A turn#

The team’s next drawer (the rotation keyed next, as Bowl’s clue-givers) gets a word from the category of the square their piece stands on, at the table’s level mix, never one used this game. They press Ready; the turn waits for every drawer’s Ready (the host can start for them), then 3 seconds of countdown, then the clock (60, 90 or 120 seconds). A Got it! pressed as the clock shows 0:00 still counts, within 0.75 seconds.

tables/drawing_a_blank/rules.py_begin · lines 118–142
def _begin(state: dict, now: float, team: int | None) -> None:
    """A turn for `team` (None: All Play for both, as the first word is)."""
    rng = random.Random(f"{state['seed']}:{state['turns']}")
    state["turns"] += 1
    final = team is not None and state["pos"][team] >= state["length"]
    category = "all" if team is None or final else _square(state, team)
    every = team is None or final or category == "all"
    drawers = {}
    for t in (range(TEAMS) if every else [team]):
        d = _drawer(state, t)
        if d is not None:
            drawers[str(t)] = d
    if not drawers:
        state["phase"], state["turn"] = "stuck", None
        return
    state["phase"] = "ready"
    state["up"] = team
    state["turn"] = {
        "no": state["turns"], "team": team, "all": every, "final": final, "first": team is None,
        "category": category, "word": _word(state, None if every else category, rng),
        "drawers": drawers, "ready": [], "starts": None, "ends": None,
        "presses": {}, "due": None, "guesses": [], "secs": state["settings"]["turn"],
    }
    log.event(state, "turn", no=state["turns"], team=team, all=every, final=final, category=category,
              drawers=drawers)

Got it! rolls the die (seeded, so a game replays the same), moves the piece and gives the team another turn; time’s up passes play. The turn’s end holds 5 seconds, 2.5 more when the die rolled.

tables/drawing_a_blank/rules.py_end · lines 284–313
def _end(state: dict, now: float, team: str | None, seat, why: str = "got") -> None:
    turn = state["turn"]
    last = {"no": turn["no"], "word": words.word(turn["word"])["word"], "category": turn["category"], "all": turn["all"],
            "final": turn["final"], "first": turn["first"], "up": state["up"], "team": None if team is None else int(team),
            "by": seat, "secs": None, "rolled": None, "why": why,
            "pads": {t: _pad(turn, t) for t in turn["drawers"]}, "drawers": dict(turn["drawers"])}
    if team is not None:
        t = int(team)
        last["secs"] = max(0, round(now - turn["starts"])) if turn["starts"] else None
        state["got"][t] += 1
        rounds.noted(state, "got", seat if seat is not None else turn["drawers"].get(team, 0))
        if turn["final"] and state["pos"][t] >= state["length"]:
            state["winner"] = t
        elif not turn["first"]:
            rolled = random.Random(f"{state['seed']}:roll:{state['rolls']}").randint(1, DIE)
            state["rolls"] += 1
            state["pos"][t] = min(state["length"], state["pos"][t] + rolled)
            last["rolled"] = rolled
        state["after"] = t
    else:
        state["after"] = _after_miss(state, last)
    # The drawers pick up after themselves next time.
    for t, d in turn["drawers"].items():
        teamplay.past(state, "next", d)
    state["last"] = last
    state["history"].append({k: last[k] for k in ("no", "word", "pads", "drawers", "team")})
    state["phase"] = "shown"
    state["shown_until"] = now + SHOWN + (ROLLED if last["rolled"] else 0)
    log.event(state, "shown", no=turn["no"], word=last["word"], team=last["team"], rolled=last["rolled"], why=why,
              pads=last["pads"])

All Play and the final word#

The game’s first word, an All Play square and the final word are All Play: each team’s next drawer draws the same word at once. The first Got it! wins it by when it was pressed, not when it arrived: the room kit’s shared clock stamps the press and tables/buzzer.py decides (ADR 0089), as in Good Question. The first word’s winner starts without moving. A team at the Finish wins with its final word; the other team getting it rolls and moves instead.

Typed guesses#

With the host’s guesses: typed, the drawer’s teammates type: each guess is shown to their team only, and checked loosely against the word’s accepted forms (tables/answers.py). A right one is the team’s Got it!.

The referee#

The host can pass play (a foul), restart a turn with a new word, start a turn for a drawer, and take back the last Got it! while its turn’s end is showing (the piece moves back and play passes). There’s no pause yet.

Someone away#

David’s D11 pattern, as in Bowl (Table games): a turn’s clock ends it by itself, so only a drawer’s Ready waits on them (away_due is always False, away_turn is a drawer who hasn’t pressed Ready). The host’s seat bar warns at 20 seconds, with Wait for them; at the away time away_pass passes the Ready to the next on their team, logging away_pass (with the new drawer; a toast for everyone). With no one else on their team, a team’s own turn goes to the other team, and in All Play the other team draws alone, its countdown starting if it had pressed Ready (_go, which tick also checks, for a drawer who leaves the same way). The view’s waiting is the first drawer still to press Ready. The bar sits atop the dock, in its own slot (seatBarIn, .mmseatslot, styled in Mixed Messages’s table.css).

tables/drawing_a_blank/rules.pyaway_pass · lines 508–529
def away_pass(state: dict, seat: int, now: float) -> None:
    """An away drawer's turn passes to the next on their team, as Bowl's
    clue-giver's does (D11, David, 2026-11-10: "Pass it on"); the room calls
    it once their page has been quiet the away time, after warning the host,
    who can Wait for them instead. In All Play their teammate draws for the
    team. With no one else on the team to draw, a team's own turn goes to the
    other team, and in All Play the other team draws alone."""
    if not away_turn(state, seat):
        return
    turn = state["turn"]
    team = next(t for t, d in turn["drawers"].items() if d == seat)
    teamplay.past(state, "next", seat)
    nxt = teamplay.rotate(state, int(team), "next", lambda s: s != seat and _can_draw(state, s))
    log.event(state, "away_pass", seat=seat, drawer=nxt)
    if nxt is not None:
        turn["drawers"][team] = nxt
    elif turn["all"] and len(turn["drawers"]) > 1:
        del turn["drawers"][team]
        _go(state, now)
    else:
        _begin(state, now, 1 - int(team))
    state["seq"] += 1

Drawings and keeping#

tables/drawing_a_blank/rules.pypads · lines 369–379
def pads(state: dict) -> dict:
    """This turn's drawings: one for a team's turn, watched by everyone; one
    a team in All Play, each watched by its own team only."""
    turn = state["turn"]
    if state["phase"] != "turn" or not turn:
        return {}
    out = {}
    for t, d in turn["drawers"].items():
        sees = teamplay.roster(state, int(t)) if turn["all"] else "all"
        out[_pad(turn, t)] = {"drawer": d, "sees": sees, "ends_at": turn["ends"]}
    return out

A team’s turn is one pad everyone watches; All Play is a pad a team, each watched only by its own team (a spectator or room screen sees neither until the turn’s end). Every turn’s drawing is kept with the game, by team, with its word (drawings), on the players’ history pages (Kept drawings).

The result#

The team that won its final word is first; each seat’s score is its team’s words got. A game ended early isn’t kept (counts). Rated as two teams (Ratings).

Secrets#

Only the drawers see the word. In All Play each team sees only its own drawer’s pad, and typed guesses only reach the guesser’s team. The contract’s scramble changes the word for everyone but its drawers.

The interface#

The bar’s title is “Drawing a Blank · ” and the phase; on a phone 400px wide or less it says the phase alone (the room’s .titlename, Front end), since name and phase took four or five lines at 320 (playtest 3, 2026-11-20).

  • The teams across the top, each with its mark, name and square; the team whose turn it is ringed.
  • The board at the top of the pad: the track’s squares in their categories’ colors (All Play striped), the teams’ pieces on them.
  • Ready: the drawer sees the word and its category and presses Ready; everyone else sees who’s drawing for whom.
  • Drawing: the pencil timer, the kit’s pad and tools, Got it! in the dock (a big button). Typed: the team’s guesses under the canvas.
  • Watching: the drawing arriving live (in All Play, your own team’s), and a field to type a guess at a typed table.
  • The turn’s end: the word, a stamp (“Got it in 0:23”, or “Time’s up”), the drawing redrawing itself (both, side by side, after All Play, the winner’s ringed), the die and the move.
  • Game over: the winner, every drawing of the game with its word, Save the drawings, Play again. The room’s cheer plays once a game, the winning team’s win only (or a rating high’s best), never for the other team or a watcher; then whatever the game won goes on the Trophy Case’s stage (gameOver; before the delight pass of 2026-11-13, every phone had a win’s confetti and there was no award stage).
  • The host has Referee (Pass play, Restart this turn), Start for them, and Take back that Got it!.

Each category’s square carries a mark beside its color, drawn in pencil (CATEGORY_MARKS): Things a box, Animals a paw, Food an apple, Places a pin, Doing a bolt, Phrases a speech bubble, All Play a burst; a piece on the square sits over it. The colors alone ran together to a color-blind eye, Places and Doing above all (David’s call, 2026-11-14).

Testing#

tests/test_drawing_a_blank.py: the board; the first word All Play and its winner starting; only the drawers see the word; Ready, the countdown and the clock; Got it! rolling, moving and going again with the next drawer; time’s up; the last-second Got it!; categories by square and All Play squares; All Play decided by the earlier press; winning with the final word, and the other team getting it; the drawers’ rotation; typed guesses judged and shown to the team; the referee; leaving; the pads and who watches; what’s kept; someone away (only an unready drawer’s turn passes, to a teammate, to the other team, or All Play drawn alone); the table-game contract with simulated people; a table of people in two teams through the service.

The playtest’s Test it stages a table at a moment with tools/drawing-a-blank/stage.py (draw, guess, shown (held a minute), won): you in seat 0, Ruth, Sam and June beside you, who never move, so the tool does what they’d do (their picks, drawings on their pads, their guesses).

npm run check:drawing-a-blank:play plays four seats on a Short board, the browser hosting and drawing: the first word’s All Play (Ready, drawing, Got it!, both drawings side by side), a teammate’s drawing arriving live, the referee passing play, and turns played through to a winner and the gallery. --size, --reduced, --shots DIR.

Changing it#

To… You need
Change a rule rules.py, docs/drawing-a-blank.md and How to play together, and a test.
Change the board LENGTHS, ALL_PLAY_EVERY; the page draws whatever board says.
Change a time TURN_SECONDS, COUNTDOWN, GRACE, SHOWN, ROLLED.

Known limitations#

  • No pause, and no sounds at ten seconds left or time’s up yet (Bowl has both).
  • The board on a phone is a compact track; a laptop shows the same track wider.

Your move, the first time. Drawing for your team: the first time each is yours in this browser, the house’s Your move card says what to do (“Draw the word for your team. No letters, numbers or talking.”), with no ring after it (the room’s ring went round the whole scene, a box over its words and tools: David, 2026-11-21, “ugly and visually confusing”; the status line and the page itself say what’s yours) (the delight pass, 2026-11-13; once keys drawing-a-blank:draw).