Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Tide Crossing: the playable page and its place in the catalogue, on the rules in `tide-crossing/causeway.js` #352
Merged 32d 7h ago, live in production
Tide Crossing is added as a playable page on the rules in tide-crossing/causeway.js, which I left untouched. It's on the branch and rebased on main, which had nothing new. I didn't run the full bun test; the forge's check runs it on this push.
-
Reviews
ApprovedPlays through TideCrossing only, announces every move and refusal through the live region, and the catalogue, README, og cards, rounds and serve test are all in place. Next two things: (1) move the next-tick stone list into causeway.js as a helper so the page stops re-deriving the covers rule; (2) the HUD says Moves N of par P but counts ticks, so waits count as moves; say Ticks N of par P.
-
Checks
shipped production is serving it deploy 7b8dc66
-
History
- Merge main into the Tide Crossing branch 32e24d8
- Add Pumpkin Patch: the playable page and its place in the catalogue, on the rules in `pumpkin-patch/plots.js` (#341) 0145828
- Add Tide Crossing: the playable page and its place in the catalogue, on the rules in tide-crossing/causeway.js (#349) 32db0b8
- Add Village Darts: the playable page and its place in the catalogue, on the rules in `village-darts/board.js` (#347) 2688fb5
- Add Carrot Pull: the playable page and its place in the catalogue, on the rules in `carrot-pull/bed.js` (#348) 52f104e
- Add Ticket Booth: the playable page and its place in the catalogue, on the rules in `ticket-booth/till.js` (#342) ec07843
- Tide Crossing rules: a tested `tide-crossing/causeway.js` where you step across a stone causeway to the island before the tide covers your path, within par, in a two-file pull with a test file that runs in under a second (#346) 0a97afa
- Village Darts rules: a tested `village-darts/board.js` where you count down from 301 and finish on a double against a seeded rival, in a two-file pull with a test file that runs in under a second (#337) c4973b7
- Carrot Pull rules: a tested `carrot-pull/bed.js` where you pull carrots when ripe before a seeded rabbit nibbles them, in a two-file pull with a test file that runs in under a second (#340) cfd8dbc
- Add Fence Posts: the playable page and its place in the catalogue, on the rules in `fence-posts/field.js` (#335) 76f43b2
- Bumper Cars rules: a tested `bumper-cars/floor.js` where you steer a car on a walled floor and shove three seeded rivals into the wall without a head-on bump, from plain data, in a two-file pull with a test file that runs in under a second (#336) 8728d37
- Ticket Booth rules: a tested `ticket-booth/till.js` where you hand exact change from a limited till to a seeded queue of pier visitors, in a two-file pull with a test file that runs in under a second (#330) 4143ff3
- Add Welly Toss: the playable page and its place in the catalogue, on the rules in `welly-toss/throw.js` (#334) f495867
- Welly Toss rules: a tested `welly-toss/throw.js` where you swing a boot and let go at the right moment of the arc to land it past the marker flags, against a seeded crosswind, from plain data, in a two-file pull with a test file that runs in under a second (#323) 79548c6
- Pumpkin Patch rules: a tested `pumpkin-patch/plots.js` where each pour waters a plot and its neighbours to bring every plot to exactly its need within par, in a two-file pull with a test file that runs in under a second (#326) 79372dd
- Add Chestnut Roast: the playable page and its place in the catalogue, on the rules in `chestnut-roast/pan.js` (#311) 218a05c
- Sack Race rules: a tested `sack-race/course.js` where you hop a sack down a grass lane in time with your own landing, against three seeded rivals, from plain data, in a two-file pull with a test file that runs in under a second (#322) f318f9d
- Hay Loft rules: a tested `hay-loft/stack.js` where you hoist bales from the cart onto loft beams without overloading any beam, within par, from plain data, in a two-file pull with a test file that runs in under a second (#321) 269b54d
- Bottle Bank rules: a tested `bottle-bank/bins.js` where you swing a conveyor chute to sort coloured bottles into the right bins before three cracks end the shift, from plain data, in a two-file pull with a test file that runs in under a second (#318) 1295cad
- Fence Posts rules: a tested `fence-posts/field.js` where you and a farmer take turns fencing between posts and claim each pen you close, from plain data, in a two-file pull with a test file that runs in under a second (#317) 999a1f4
2 earlier comments
Tide Crossing is added as a playable page on the rules in tide-crossing/causeway.js, which I left untouched. It's on the branch and rebased on main, which had nothing new. I didn't run the full bun test; the forge's check runs it on this push. Before pushing, serve.test.mjs, shell.test.mjs, town.test.mjs, the new tide-crossing/page.test.mjs and the Tide Crossing cases in playtest.test.mjs all passed. The repo has no scripts/gate.ts, no scripts/design-lint.ts and no tsconfig, so bun x tsc --noEmit only prints its help text and I ran none of them.
What changed
- Page:
tide-crossing/index.htmldraws the causeway as stone slabs under the fixed 30-degree camera, with hard shadows screen-right and lapping foam that stops underprefers-reduced-motion.- Scene: the sand start stone, the island stone with a flag, the walker, and blue water with wave lines over every stone covered at the current tick. A tide gauge at the left shows the water level and next tick's level.
- Ripple edge: a stone that goes under next tick gets a dashed ripple ring as well as the HUD naming it.
- Input: arrows or WASD call
move, Space callswait. On touch, tapping a neighbouring stone steps there and tapping the walker's stone waits. After a win a tap goes to the next level, and after a loss it restarts. - Keys and HUD: R restarts and N goes to the next level after a win. The HUD shows the level name, tick, "Moves N of par P" and the stones going under next tick.
- Announcements: each move, each refusal reason and the state's
linego through an aria-live region. There is a#mutebutton with synthesized sound, no.mp3, and the rules popup is four lines.
- Catalogue:
shell.jshas theGAMESentry (idtide-crossing, Puzzle, Keys,music: false,forged: true) andindex.htmlhas the matching<li>.- The town building comes from
town.jsautomatically, since it lays out buildings fromGAMES. - The README has the Games row, the no-music list and the reduced-motion note.
og/tide-crossing.pngandog/home.pngare regenerated withbun scripts/og.mjs.
- Tests:
rounds.mjshas a scripted round that plays the first level's stated solution to "Crossed in 3 ticks against par 3: on par".serve.test.mjschecks that/tide-crossing/and/tide-crossing/causeway.jsanswer 200.tide-crossing/page.test.mjscovers keys, refusal messages, the next-tick list, losing, restart, touch taps and reduced motion.
What I chose not to do
- No save of the current level; the issue didn't ask for one.
- "Under next tick" is read from the rules' own
tideAtand the statedtide[t] >= hrule, becausecauseway.jshas no function that lists those stones. A small helper there would let the page drop that read.
The tide gauge and the drawn stone height (0.5 + 0.12 × height) are my own visual choices, so I'd look at the preview for those.
I merged main into the branch and pushed it. The branch now has both Tide Crossing and Pumpkin Patch, which arrived from main.
- Tests: I ran
serve.test.mjsand the tide-crossing tests: 111 pass, 0 fail. I did not run the full suite; the forge's check does that on the push. - Type check:
bun x tsc --noEmitprinted only its usage help, so I take it the repo has no tsconfig, and that check did not run. README.md: I kept both catalogue rows. The "add a game" music list and the ambient-motion list now name Tide Crossing alongside Pumpkin Patch.shell.js: bothGAMESentries are kept.serve.test.mjs: both games' "served without a track" tests are kept.og/home.png: I regenerated it withbun scripts/og.mjs, so the collage includes both games and the serve test's byte-for-byte check still holds.
Left #349 open: 1 unticked item remain (rounds.mjs has a scripted round for tide-crossing that reaches the end line (the first level's solution is in the rules). serve.test.mjs asserts that /tide-crossing/ and /tide-crossing/causeway.js answer 200. playtest.test.mjs passes for the folder, and bun test passes. Any new page test stays inside the per-game test budget the suite already holds to.).
Tide Crossing is added as a playable page on the rules in
tide-crossing/causeway.js, which I left untouched. It's on the branch and rebased on main, which had nothing new. I didn't run the fullbun test; the forge's check runs it on this push. Before pushing,serve.test.mjs,shell.test.mjs,town.test.mjs, the newtide-crossing/page.test.mjsand the Tide Crossing cases inplaytest.test.mjsall passed. The repo has noscripts/gate.ts, noscripts/design-lint.tsand no tsconfig, sobun x tsc --noEmitonly prints its help text and I ran none of them.What changed
tide-crossing/index.htmldraws the causeway as stone slabs under the fixed 30-degree camera, with hard shadows screen-right and lapping foam that stops underprefers-reduced-motion.move, Space callswait. On touch, tapping a neighbouring stone steps there and tapping the walker's stone waits. After a win a tap goes to the next level, and after a loss it restarts.linego through an aria-live region. There is a#mutebutton with synthesized sound, no.mp3, and the rules popup is four lines.shell.jshas theGAMESentry (idtide-crossing, Puzzle, Keys,music: false,forged: true) andindex.htmlhas the matching<li>.town.jsautomatically, since it lays out buildings fromGAMES.og/tide-crossing.pngandog/home.pngare regenerated withbun scripts/og.mjs.rounds.mjshas a scripted round that plays the first level's stated solution to "Crossed in 3 ticks against par 3: on par".serve.test.mjschecks that/tide-crossing/and/tide-crossing/causeway.jsanswer 200.tide-crossing/page.test.mjscovers keys, refusal messages, the next-tick list, losing, restart, touch taps and reduced motion.What I chose not to do
tideAtand the statedtide[t] >= hrule, becausecauseway.jshas no function that lists those stones. A small helper there would let the page drop that read.The tide gauge and the drawn stone height (
0.5 + 0.12 × height) are my own visual choices, so I'd look at the preview for those.Closes #349