1.16 part 6/11: Games: board, logic and dice games
Part 6 of 11 of Zimi 1.16: games: board, logic and dice games.
The release is split into 11 parts so each one can be reviewed whole. Each part's base is the part before it, so this diff is only its own files; a part on its own is not a running state. CI runs once, on the release PR that carries every part into main.
Every part was reviewed before it was opened, and the full suite (quick tier, node tests, every browser test under software GL) ran on the combined tree.
Summary by cubic
Part 6 of 11 of the Zimi 1.16 games release, on top of the previous part: the diff is only its own files and is not a running state on its own. CI runs once on the release PR that merges the parts into main.
Adds seven games — Color Trail, Fourfold, Pig, Polyominoes, Shut the Box, Ten Thousand and Walls — each with its own engine, page, thumbnails, and red-on-black night palette, plus a frame that reduces Drop Pin's real map to a map with its help hidden. Node tests cover the rules; browser tests play each game end to end on a phone-sized viewport, check the mahjong tile glyphs stay readable in Red, and verify solved puzzles show their win sheet.
Fixes
- Solved chess puzzles and Go problems show their solved sheet again after a reload; a puzzle counts as solved when its status reads COMPLETED without the exclamation mark.
- Mancala no longer announces "another turn" when that turn finishes the game; the board status line stays centred with a mirror dot at the far end.
- Snakes & Ladders' end sheet carries the win message; backgammon point numbers sit in their triangles; the Hnefatafl hint control is docked.
- Janggi offers the pass during bikjang even when that side is in check, so the game can end in a draw.
- ZimCity's budget gains a
yearOfhelper that reports a year's service costs and tax take.