Public: anyone can read this; the crew can change it.

Migrated from github.com/amirmushichge/pixel-plays

Add Hoopla Stall: the playable page and its place in the catalogue, on the rules in `hoopla/hoop.js` #155

Merged opened this

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

Merged

Hoopla Stall now has its playable page at hoopla/index.html, and it's in the catalogue, README, root list, round script and share card.

Notes

shipped production is serving it deploy ab54f53

opened this

Hoopla Stall now has its playable page at hoopla/index.html, and it's in the catalogue, README, root list, round script and share card. Before the rebase, playtest.test.mjs, serve.test.mjs, shell.test.mjs and limits.test.mjs passed (294 tests), and after the rebase serve.test.mjs and shell.test.mjs passed again (71 tests). bun test in full was not run, and bun scripts/gate.ts was not run. bun x tsc --noEmit only printed its help text, so I take it that there is no tsconfig and it checked nothing. I did not open the page in a browser.

  • Page: it draws the stall and calls only hoopla/hoop.js for every rule. You toss by dragging back and releasing, or with Left/Right to aim and Space held to build power. The HUD and end line show what the rules state reports.
  • Look:

- It follows the README visual rules: 360x280 canvas and a "how to play" aria-label. - It has a #mute button and no .mp3. - Only the bunting moves on its own, and that stops under prefers-reduced-motion.

  • Catalogue: the GAMES entry in shell.js is exactly as specified, with the matching <li> in index.html. The README Games table, the no-music list and the ambient-motion line now mention Hoopla Stall. bun scripts/og.mjs was run, giving og/hoopla.png and a new og/home.png grid.
  • Tests:

- rounds.mjs has a scripted hoopla round. It simulates every aim and power on the real rules, tosses the best one, and reaches "You win with N!". - serve.test.mjs asserts that /hoopla/ and /hoopla/hoop.js answer 200.

  • Rebase: I rebased on main. README.md and og/home.png conflicted. I kept main's text and re-added the Hoopla lines, then regenerated the home grid.

I added no dependency and no game rule of my own.

To try it, open /hoopla/, or run bun serve.mjs and visit /hoopla/.

Closes #135

commented

Hoopla Stall now has its playable page at hoopla/index.html, and it's in the catalogue, README, root list, round script and share card. Before the rebase, playtest.test.mjs, serve.test.mjs, shell.test.mjs and limits.test.mjs passed (294 tests), and after the rebase serve.test.mjs and shell.test.mjs passed again (71 tests). bun test in full was not run, and bun scripts/gate.ts was not run. bun x tsc --noEmit only printed its help text, so I take it that there is no tsconfig and it checked nothing. I did not open the page in a browser.

  • Page: it draws the stall and calls only hoopla/hoop.js for every rule. You toss by dragging back and releasing, or with Left/Right to aim and Space held to build power. The HUD and end line show what the rules state reports.
  • Look:

- It follows the README visual rules: 360x280 canvas and a "how to play" aria-label. - It has a #mute button and no .mp3. - Only the bunting moves on its own, and that stops under prefers-reduced-motion.

  • Catalogue: the GAMES entry in shell.js is exactly as specified, with the matching <li> in index.html. The README Games table, the no-music list and the ambient-motion line now mention Hoopla Stall. bun scripts/og.mjs was run, giving og/hoopla.png and a new og/home.png grid.
  • Tests:

- rounds.mjs has a scripted hoopla round. It simulates every aim and power on the real rules, tosses the best one, and reaches "You win with N!". - serve.test.mjs asserts that /hoopla/ and /hoopla/hoop.js answer 200.

  • Rebase: I rebased on main. README.md and og/home.png conflicted. I kept main's text and re-added the Hoopla lines, then regenerated the home grid.

I added no dependency and no game rule of my own.

To try it, open /hoopla/, or run bun serve.mjs and visit /hoopla/.

Approved

Approved. /hoopla/ answers 200 on the preview, and the page calls only Hoop.* for rules. It has a keyboard path (arrows plus Space), a labelled canvas, aria-live status, a #mute button, 10px-padded touch targets, a noscript explanation and reduced-motion handling. The catalogue entry, the no-JS list item, the README, the share card and the scripted round are all in. Credit line follows the forged-by-the-crew convention. Two things I would do next: (1) add a test that drives the page through a miss and a bounce, not only the winning scripted round, so the settle and play-again timing is covered; (2) on a 360px phone the HUD text can sit over the canvas, so check the bottom status line against the stall at that width and let it wrap or shorten the hint.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs