Skip to content

1.16 part 8/18: Games: new board, dice and picture games - #179

Closed
epheterson wants to merge 1 commit into
line/1.16.0-07-games-cardsfrom
line/1.16.0-08-games-new
Closed

epheterson wants to merge 1 commit into
line/1.16.0-07-games-cardsfrom
line/1.16.0-08-games-new

Conversation

@epheterson

@epheterson epheterson commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Part 8 of 18 of Zimi 1.16.0: Games: new board, dice and picture games. Base: line/1.16.0-07-games-cards (part 7); the diff shows only this part's files. The PR carries the not-a-release label and the version stays 1.15.7, so merging it cuts no release. Merge in order (1 to 17, then 18) with a merge commit, not a squash.

What this is

The new board, dice and picture games of ZimiGames, and a frame for Drop Pin's map. Each game follows the existing pattern: rules as pure functions that node can test, then the page. The rows for these games are already in games.json from part 6.

What changes

  • Walls (walls.js, walls-engine.js, walls.css, walls.html): a 9 by 9 race where a turn steps a pawn or lays one of ten walls, and no wall may shut a pawn off from its goal. The engine is one self-contained function built into a Worker and takes the shared searcher.
  • Fourfold (fourfold.js, fourfold-engine.js): sixteen pieces with four traits on a 4 by 4 board; each turn places the piece handed over and hands one on. Same Worker shape.
  • Polyominoes (polyominoes.js, polyominoes-engine.js): two players, the 21 free pieces of one to five squares on a 14 by 14 board, corner contact only; a move is an integer packing piece, orientation and anchor.
  • Dice: pig.js, shutthebox.js and tenthousand.js, each with its own .css and .html; the scoring and the computer's choice are pure functions.
  • Kids: colortrail.js (a colour path race for two to four, with a shape per colour so colour is never the only clue) and whoisit.js with whoisit-art.js (24 faces drawn from their features, so the question buttons reuse the same drawing).
  • oddone.js and pictures.js: a party game for three to eight on one phone, with pictures drawn in pictures.js so it needs no word lists and works in any language.
  • droppin-frame.js: Drop Pin's map is a third party viewer in our frame. The frame hides everything beside the map's container (a mutation observer hides new elements), and reads where the map is looking. droppin.js uses it (startHash, gameMap) and droppin.css gets its Red block.
  • The new .css files carry generated Red blocks; the generator lands in part 9.
  • Tests: test_games_links.py and test_games_featured_row_browser.py are added here; test_games_pixels.cjs is extended.

How to review

  • Start with walls-engine.js (wall legality and the path check that stops a shut-in), then polyominoes-engine.js (orientation tables and the corner rule), then droppin-frame.js.
  • Risk: droppin-frame.js reaches into a document we did not write (same origin, hidden by structure and not by class name), so a viewer change could leave its controls showing; the engines run in a Worker and a wrong move number is silent; oddone.js keeps a secret between players on one screen.
  • Skip: the SVG strings in pictures.js and whoisit-art.js; the night-red blocks marked generated (made by scripts/games_red.py, part 9).
  • The served Games ZIM between parts 6 and 10 is the previous build; the source folder is ahead of it. The built ZIM lands once, in a commit of its own on top of part 10.
  • Rides here: test_games_links.py asserts on the shelf links of the new games, and test_games_featured_row_browser.py on the Featured row, which needs these pages to exist.

Tests

  • Rules in node: test_games_walls.cjs, test_games_fourfold.cjs, test_games_polyominoes.cjs, test_games_oddone.cjs, test_games_dicekids.cjs.
  • Pages: test_games_dicekids_browser.py, test_games_whoisit_browser.py, test_games_oddone_browser.py play the games in a browser.
  • test_games_modern_browser.py opens the new board games; test_games_droppin_map_browser.py covers the Drop Pin frame.
  • test_games_featured_row_browser.py holds the Featured row to the day's pick and to the list of new games.
  • test_games_links.py and test_games_pixels.cjs check the shelf links and the tile art.
  • The .cjs rules tests and test_games_links.py are quick; the browser tests run in the whole matrix, not this PR's quick tier.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@epheterson epheterson added the not-a-release Ships nothing; CI skips the version check label Nov 23, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Sorry @epheterson, your pull request is larger than the review limit of 150,000 diff characters

@epheterson epheterson mentioned this pull request Nov 23, 2026
@epheterson
epheterson force-pushed the line/1.16.0-07-games-cards branch from 3d6d392 to a12ffc1 Compare November 23, 2026 10:07
@epheterson
epheterson force-pushed the line/1.16.0-08-games-new branch from b9589c2 to 7d5a2e5 Compare November 23, 2026 10:07
@epheterson
epheterson force-pushed the line/1.16.0-07-games-cards branch from a12ffc1 to d157b69 Compare November 23, 2026 10:51
@epheterson
epheterson force-pushed the line/1.16.0-08-games-new branch from 7d5a2e5 to 87f5336 Compare November 23, 2026 10:52
@epheterson
epheterson force-pushed the line/1.16.0-07-games-cards branch from d157b69 to ce77970 Compare November 23, 2026 16:37
@epheterson
epheterson force-pushed the line/1.16.0-08-games-new branch from 87f5336 to 173a003 Compare November 23, 2026 16:37
@epheterson
epheterson force-pushed the line/1.16.0-07-games-cards branch from ce77970 to 0ca2233 Compare November 23, 2026 16:44
@epheterson
epheterson force-pushed the line/1.16.0-08-games-new branch from 173a003 to 74fbfb9 Compare November 23, 2026 16:44
@epheterson

Copy link
Copy Markdown
Owner Author

Reviewed here; included in the release PR #189.

@epheterson epheterson closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-a-release Ships nothing; CI skips the version check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant