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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

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.

Notes

shipped production is serving it deploy ab54f53

opened this

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.html draws 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.mjs plays the rules' own shortest solution to the win line. serve.test.mjs asserts that /ferryman/ and /ferryman/ferry.js answer 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

Closes #139

1 earlier comment · 1 event
commented

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.html draws 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.mjs plays the rules' own shortest solution to the win line. serve.test.mjs asserts that /ferryman/ and /ferryman/ferry.js answer 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

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

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.

Approved

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs