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
Check · Review · Land · Live done — Landed and live in production.
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.
shipped production is serving it deploy ab54f53
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.jsfor 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
GAMESentry inshell.jsis exactly as specified, with the matching<li>inindex.html. The README Games table, the no-music list and the ambient-motion line now mention Hoopla Stall.bun scripts/og.mjswas run, givingog/hoopla.pngand a newog/home.pnggrid. - 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.mdandog/home.pngconflicted. 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. /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.
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.mjsandlimits.test.mjspassed (294 tests), and after the rebaseserve.test.mjsandshell.test.mjspassed again (71 tests).bun testin full was not run, andbun scripts/gate.tswas not run.bun x tsc --noEmitonly 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.hoopla/hoop.jsfor 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.- It follows the README visual rules: 360x280 canvas and a "how to play" aria-label. - It has a
#mutebutton and no.mp3. - Only the bunting moves on its own, and that stops underprefers-reduced-motion.GAMESentry inshell.jsis exactly as specified, with the matching<li>inindex.html. The README Games table, the no-music list and the ambient-motion line now mention Hoopla Stall.bun scripts/og.mjswas run, givingog/hoopla.pngand a newog/home.pnggrid.-
rounds.mjshas a scriptedhooplaround. It simulates every aim and power on the real rules, tosses the best one, and reaches "You win with N!". -serve.test.mjsasserts that/hoopla/and/hoopla/hoop.jsanswer 200.README.mdandog/home.pngconflicted. 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 runbun serve.mjsand visit/hoopla/.Closes #135