Board games
Wall to Wall
The tile-drafting board game. Take every tile of one color, fill your rows and tile your wall so the tiles join up, against bots or with family, 2 to 4.
On this page
Wall to Wall is a tile-drafting game for 2 to 4. Each round, displays of four tiles are dealt from a bag; in turn, each player takes every tile of one color from a display (the rest slide to the center) or from the center, and puts them in one of five pattern rows, what doesn’t fit falling to a floor that costs points. When the tiles are gone, every full row puts one tile up on its player’s wall, scoring for the tiles it joins. The game ends after the round in which anyone finishes a row of their wall, with bonuses for rows, columns and full colors.
It plays the classic tile-drafting game in its own rules’ words, with our own name and look (David’s fourteen calls of 2026-11-12 are in docs/wall-to-wall.md; how the screens were settled is ADR 0099). It’s a table game on the table service, a room-kit table in the browser (the front end), and kept games are rated (Ratings).
At a glance#
| Part | Where |
|---|---|
| Rules: taking, tiling, the free wall, the end | tables/wall_to_wall/rules.py |
| Bots: three levels | tables/wall_to_wall/bots.py |
| The table: the ring, your board, the others, the dock, the stages | games/static/games/wall-to-wall/table.js |
| The tiles and the screen’s arithmetic | games/static/games/wall-to-wall/tiles.js |
| The entry: the lobby’s settings | games/static/games/wall-to-wall/app.js |
| Its look: tokens, tiles and boards; the table’s layout | games/static/games/wall-to-wall/wall-to-wall.css, games/static/games/wall-to-wall/table.css |
| How to play | games/rulebooks/wall-to-wall.md |
| Tests | tests/test_wall_to_wall.py, tools/room/wall-to-wall.test.mjs |
| A table set to a moment; a whole game played in a browser | tools/wall-to-wall/stage.py, tools/wall-to-wall/play.mjs |
| The bots’ strength, measured | tools/wall_to_wall/strength.py |
| Rules and design notes | docs/wall-to-wall.md |
The rules in code#
The state is the bag, the box, the displays, the center, where the first-player marker is, and a board per seat: five pattern rows (each [color, count]), a 5 by 5 wall (a color or nothing in each space) and a floor. Colors are 0 to 4; the marker on a floor is "M". On the standard wall a row’s space for color k is column (k + row) % 5:
tables/wall_to_wall/rules.py column · lines 66–68def column(color: int, row: int) -> int:
"""The standard wall: color k's space in a row."""
return (color + row) % COLORS
A turn is one move, take (a source, a color, a row or "floor"). Whether a row can take a color is fits, which says why not in a player’s words, and the screen says the same (fits in games/static/games/wall-to-wall/tiles.js):
tables/wall_to_wall/rules.py fits · lines 133–142def fits(state: dict, seat: int, row: int, color: int) -> str | None:
"""Why a row can't take this color, in plain words, or None if it can."""
color_now, count = state["boards"][seat]["rows"][row]
if count == row + 1:
return "That row is full. Choose another row, or the floor."
if color_now is not None and color_now != color:
return "That row already has another color. Choose another row, or the floor."
if color in state["boards"][seat]["wall"][row]:
return "Your wall already has that color in that row. Choose another row, or the floor."
return None
When the displays and the center are empty, _tile puts every full row’s tile up (on the free wall, each player picks its column, place), _settle charges each floor and holds the next round long enough for every screen to stage the tiling: 0.8 s a board, 1 s a tile, 0.4 s a floor tile, at most 30 s. A tile’s points:
tables/wall_to_wall/rules.py tile_points · lines 215–228def tile_points(wall: list[list], row: int, col: int) -> int:
"""What a tile just set at (row, col) scores: 1 alone; else the run it
makes across its row plus the run down its column, each counted if it's
two or more (the tile in both)."""
def run(dr, dc):
n, r, c = 0, row + dr, col + dc
while 0 <= r < ROWS and 0 <= c < COLORS and wall[r][c] is not None:
n, r, c = n + 1, r + dr, c + dc
return n
across = 1 + run(0, -1) + run(0, 1)
down = 1 + run(-1, 0) + run(1, 0)
if across == 1 and down == 1:
return 1
return (across if across > 1 else 0) + (down if down > 1 else 0)
A round whose tiling finishes any wall row is the last; _finish adds the bonuses (2 a row, 7 a column, 10 a full color) and breaks a tie on complete rows.
What each seat sees#
Everything but the bag’s order: every board, display and the center are public, and the bag’s counts by color are in the view (anyone could keep them). On your turn the view also says which rows can take each color (can), so the screen lights them without asking; on the free wall, which columns your next row can go to (cols).
The bots#
Three levels, a person’s way of playing each, never reading the bag (tables/wall_to_wall/bots.py). Easy takes a color it can place without anything falling, else the fewest tiles; Medium is greedy for the round, scoring the wall tile a move would make against what falls; Hard adds a penalty for tiles it would strand and subtracts most of the next player’s best reply. Measured by tools/wall_to_wall/strength.py (seeded games both ways round, with intervals): Hard beats Medium about three games in four, Medium beats Easy nearly every time. A bot takes 2.5 s over a take (call 5). Bots sit at the default spacing in ANCHORS (ratings/tables.py) until they’re measured.
The interface#
The table (mockups v3, ADR 0099): the others in a strip at the left, the displays in a ring on a wooden turntable with the center in its middle, your board taking the rest; on a phone, the others in a row, the ring, your board, the dock. fit() sizes the tiles, the ring and the others’ cards for the pane and changes them only when the window changes, so nothing moves its place during a turn. The displays are sized from the ring’s room (displaysFit()): each keeps 6px from its neighbours, from the center’s circle and its rim, and inside the ring’s edge. Where their usual size and place (35.5% of the ring out) fit, as on a laptop, nothing changes; on a small ring, or with nine displays, they pad tighter and sit further out, and only then do their tiles shrink, never under a finger’s 44px across (on a phone they cut 4px into the center, and with nine displays into each other: the 2026-11-22 sweep). The smallest phones (320×568) are still tight with four players: a known limitation.
- A turn (call 10): tap a stack (each display and the center show one stack per color, its count on a badge): it lifts, and the rows that can take it light up with a dashed edge (the helper “Light the rows that can take them”, on at first). Tap a row (or the floor) to preview: the tiles that would go in show in the row, any that would fall show on the floor in red, and the dock says how many and what they’d cost. Tap the row again or Place; Cancel or Escape puts them back. A row that can’t take them says why in the dock.
- The focus by keys (the 2026-11-13 accessibility audit): a move redraws the table, and a focus that was on it goes back to the same control (by its name, or its place among its kind, as a picked stack renames itself), or to the first thing you can press now; with nothing to press, to the dock, so the next Tab goes on from the table rather than from the top of the page (
keepFocus). The dock’s words name the press as the player makes it: “Click a lit row” with a mouse (and the keys, where Enter clicks), “Tap” on a touch screen (finePointer). - The dock keeps one height, Cancel and Place in fixed slots. It says what’s happening in a player’s words: “Mom is choosing. You’re next.”, “3 orange tiles. 2 go in row 2 and 1 falls to the floor (−1).”
- The others’ cards: mark, name, points, their wall small, and a line (their floor’s cost, “Choosing”, “Starts next round”). A tap opens their board full size.
- The tiling (call 11): one board at a time, you first and then round the table, each tile sliding up with its points beside it and the tiles it joins lit, then the floor’s tiles falling with its cost; the dock narrates and Skip hurries it. The board shown is rebuilt from the
tiledevent (shownBoard). A new round gets a banner, as Alphabet Roulette’s and Bowl’s do (“Round 2”, who starts, the displays full again) (the quietest signal that does, the delight pass of 2026-11-13: its words are said in the live region, as a banner’s aren’t); a finished wall row gets the strong band (“The last round”), then the bonuses count up in the center, one kind at a time, and the result sheet. - Options: two helpers (lit rows, on; “Say what a tile would score”, off: call 12) and Sounds (a clink, a clack; off at first: call 13).
Its look#
Wall to Wall’s personality, in the design system’s personality sheet.
| Family | Board and party: the room kit in a look of its own. Checked on phones as closely as on a laptop. Everything else is the room kit’s (Board and party games). |
| Palette | Ink #2b211b on warm plaster; the one fill #2b211b; yours #b5442a, a terracotta; good #2f7a52 and bad #b42318. A ceramic studio: wood, cream and bisque, with five deep glazes as the only strong colors, each with a motif of its own (a ring, a leaf, a star, three dots, a cross) so a tile is told by its shape too. |
| Faces | Young Serif for the title and the names; Figtree for everything else, the scores on the boards too (in its even figures, trimmed to its capitals so the number sits in the middle of its plate: Young Serif’s figures are old-style, a 7 below the line and a 1 short, so no padding centered every score) |
| Corners and edges | Panels 14px, buttons 10px; tiles rounded a fifth, glazed darker at their edges and glossy at the top |
| Board | A wooden ware board, its grain running long; the wall a bisque backsplash printed faintly with each space’s color, a finished row lit end to end inside it. The displays are speckled kiln shelves on a turntable. Picked: the stack lifts, ringed inside its edge. Lit rows: a dashed edge; the previewed row: a solid one. |
| Emblem and art | Its box on the shelf: a bisque wall of glazed tiles on the ware board, its top row lit, and a kiln shelf of four tiles |
| Voice | A display, the center, your rows, your wall, the floor; “Take a color from a display or the center”, “Every display is empty. Tiling the walls.”, “The last round” |
| Payoff | The tiling, a tile at a time with its points; the room’s celebration for a win, in the glazes |
| The glance | Now: the dock. The countdown: the displays emptying round the ring. The score: on each board’s corner and each card. Yours: the lifted stack and the lit rows. |
| Exceptions | None yet |
Testing#
tests/test_wall_to_wall.py holds the rules as sentences (the table, taking, tiling, the end, the free wall, secrets, the bots) and the table contract. tools/room/wall-to-wall.test.mjs holds the screen’s arithmetic to the rules’. tools/wall-to-wall/play.mjs (npm run check:wall-to-wall:play, --free for the free wall, --size for a phone) plays a whole game in a headless Chrome against a quick Medium bot: a stack lifts, a row previews, a row that can’t take the tiles says why, Place takes them, the tilings are staged and one is skipped, a new round’s banner and the last round’s band play, and the result sheet opens. tools/wall-to-wall/stage.py sets a table late in the game (late) or to the last take of the last round (last) for the details check.
Changing it#
- The glazes and motifs:
--g0to--g4ingames/static/games/wall-to-wall/wall-to-wall.css,MOTIFSandNAMESingames/static/games/wall-to-wall/tiles.js, How to play and the box art. - The tiling’s pace is in two places: the rules’
TILE_SECS,FLOOR_SECSandBOARD_SECS, and the table’sTILE_MS,FLOOR_MSandBOARD_MS. Change both, or the next round starts under a stage still playing. - The layout’s sizes are
fit()ingames/static/games/wall-to-wall/table.js: a board is about 12.6 tiles wide and 9.9 tall with its padding.
Rating#
A kept game is rated by place like every table game (Ratings), ties on complete rows broken as the rules break them.