Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Ferryman: the playable page and its place in the catalogue, on the rules in `ferryman/ferry.js` #160
Check · Review · Land · Live done — Landed and live in production.
Ferryman is now a playable page at /ferryman/, built on ferryman/ferry.js, and I've pushed it rebased on current main. The full playtest, serve.test.mjs and shell.test.mjs passed before the rebase.
shipped production is serving it deploy ab54f53
1 earlier comment · 1 event
Ferryman is now a playable page at /ferryman/, built on ferryman/ferry.js, and I've pushed it rebased on current main. The full playtest, serve.test.mjs and shell.test.mjs passed before the rebase. After it I re-ran only serve.test.mjs, shell.test.mjs, town.test.mjs, ferryman/ and the Ferryman playtest, and those passed. The forge's check hasn't reported yet.
What changed
- Page:
ferryman/index.htmldraws the river, both banks, two landings and the ferry. The fox, goose, grain and dog stand on the bank or aboard.
- Play: tap a passenger to load or unload it, tap the ferry to cross. Keys 1-4 pick a passenger and Space or Enter cross. Numbered labels over each passenger show which key picks which.
- Rules: every crossing goes through Ferry.cross, and the HUD shows level, crossings and par from the rules state. The loss, win and par lines come from R.line. A loss by being eaten puts a red cross over the hunter and hides its prey.
- Visuals: it follows the README Visual rules. Only the river ripples are ambient, and they freeze under prefers-reduced-motion. The ferry sliding across is play, not ambience. There is a #mute button, sound is generated, and no .mp3 is committed.
- Save: the furthest level reached is saved in localStorage, and a win moves you on to the next level.
- Catalogue:
- Listed in GAMES in shell.js with the exact entry from the issue.
- Added the matching <li> to the root index.html.
- Added the README Games row, the no-music list and the ambient-motion line.
- Ran bun scripts/og.mjs for the share card.
- Tests:
rounds.mjsplays the rules' own shortest solution to the win line.serve.test.mjsasserts that/ferryman/and/ferryman/ferry.jsanswer 200.
Not done
- No hint or undo.
- The "on the other bank" and "ferry has N seats" notices are repeated in the page. The rules still decide every crossing.
- Level progression is a few lines in the page, not a rule.
Not run: scripts/gate.ts and scripts/design-lint.ts don't exist in this clone, and tsc has no tsconfig here, so none of them ran.
To try it: open /ferryman/ on the preview and tap the goose, then the ferry.
🤖 Generated with Claude Code
I merged main into this branch and pushed it. main had added Lock Keeper (#159) in the same shared files. The merge left no conflict markers, so I changed nothing by hand. Ferryman and Lock Keeper both appear in README.md, index.html, rounds.mjs, serve.test.mjs and shell.js.
I ran serve.test.mjs, ferryman and lock-keeper: 88 tests pass, 0 fail. I did not get a result for the full bun test run, which hung and timed out in my sandbox. The forge's check runs the whole suite on this push.
bun x tsc --noEmit only printed its help text, so I did not get a type check from it.
I did not run scripts/gate.ts or scripts/design-lint.ts after the merge.
Clean. Ferryman is a static page on the existing rules in ferryman/ferry.js. Every crossing goes through Ferry.cross, and the preview answers 200 at /ferryman/. It adds no server code, no storage beyond a validated localStorage level, no new dependency and no secrets. Output goes through textContent. It is listed in GAMES, the root index.html and the README, and credited as forged by the crew. The rounds.mjs playtest plays the rules own solution to the win line, and serve.test.mjs checks the page and its script are served.
Ferryman is now a playable page at
/ferryman/, built onferryman/ferry.js, and I've pushed it rebased on current main. The full playtest,serve.test.mjsandshell.test.mjspassed before the rebase. After it I re-ran onlyserve.test.mjs,shell.test.mjs,town.test.mjs,ferryman/and the Ferryman playtest, and those passed. The forge's check hasn't reported yet.What changed
ferryman/index.htmldraws the river, both banks, two landings and the ferry. The fox, goose, grain and dog stand on the bank or aboard.- Play: tap a passenger to load or unload it, tap the ferry to cross. Keys 1-4 pick a passenger and Space or Enter cross. Numbered labels over each passenger show which key picks which. - Rules: every crossing goes through
Ferry.cross, and the HUD shows level, crossings and par from the rules state. The loss, win and par lines come fromR.line. A loss by being eaten puts a red cross over the hunter and hides its prey. - Visuals: it follows the README Visual rules. Only the river ripples are ambient, and they freeze underprefers-reduced-motion. The ferry sliding across is play, not ambience. There is a#mutebutton, sound is generated, and no.mp3is committed. - Save: the furthest level reached is saved inlocalStorage, and a win moves you on to the next level.- Listed in
GAMESinshell.jswith the exact entry from the issue. - Added the matching<li>to the rootindex.html. - Added the README Games row, the no-music list and the ambient-motion line. - Ranbun scripts/og.mjsfor the share card.rounds.mjsplays the rules' own shortest solution to the win line.serve.test.mjsasserts that/ferryman/and/ferryman/ferry.jsanswer 200.Not done
Not run:
scripts/gate.tsandscripts/design-lint.tsdon't exist in this clone, andtschas no tsconfig here, so none of them ran.To try it: open
/ferryman/on the preview and tap the goose, then the ferry.🤖 Generated with Claude Code
Closes #139