Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Market Barrow: the playable page and its place in the catalogue, on the rules in `market-barrow/barrow.js` #193
Parked 33d 13h ago
Market Barrow now has a playable page at /market-barrow/, listed in the catalogue and driven only through market-barrow/barrow.js. The serve, shell and town tests pass (103). The playtest.test.mjs cases for market-barrow and the scripted-round check pass, but I did not run the whole of playtest.test.mjs to completion.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 51de1ac
-
History
- Widen the town's minimum canvas so buildings stay thumb-sized as the catalogue grows 51de1ac
- Add Market Barrow: the playable page and its place in the catalogue, on the rules in market-barrow/barrow.js 25c8693
- Add Sandcastle Tide: the playable page and its place in the catalogue, on the rules in `sandcastle/tide.js` (#183) 62ed252
- Market Barrow rules: a tested `market-barrow/barrow.js` that buys and sells a barrow of goods across village stalls over ten days, from plain data (#172) dcd7a2d
- Add Tower Duel: the playable page and its place in the catalogue, on the rules in `tower-duel/duel.js` (#156) 651fe84
- Lily Pond rules: a tested `lily-pond/pond.js` where a frog must hop every lily pad once before they sink, from plain data (#173) a189dc4
- Sandcastle Tide rules: a tested `sandcastle/tide.js` that floods a beach grid around your walls from plain data (#164) 8a56e9e
- Shunting Yard rules: a tested `shunting-yard/yard.js` that sorts numbered wagons through sidings from plain data (#171) 0ac2869
- Hedge Maze rules: a tested `hedge-maze/maze.js` that carves and walks a seeded maze from plain data (#165) ee4504b
- Add Ferryman: the playable page and its place in the catalogue, on the rules in `ferryman/ferry.js` (#160) c673ad1
- Allotment rules: a tested `allotment/plot.js` that plants a season of crops on a grid and scores neighbours from plain data (#170) 8339194
- Add Lock Keeper: the playable page and its place in the catalogue, on the rules in `lock-keeper/lock.js` (#159) e7a1429
- Add Hoopla Stall: the playable page and its place in the catalogue, on the rules in `hoopla/hoop.js` (#155) 2a3861d
- Open the home page on the isometric town: tap a building to play its game (#153) c4f9ad3
- Lock Keeper rules: a tested `lock-keeper/lock.js` that works boats through a flight of canal locks from plain data (#154) 18627a4
- Add Seed Packets: turn over the packets on the potting bench and match every pair before the gardener comes back (#136) 1bcb5fd
- Ferryman rules: a tested `ferryman/ferry.js` that plays the fox, goose and grain crossing from plain data (#152) 2081d2f
- Hoopla Stall rules: a tested `hoopla/hoop.js` that plays a whole game from plain data (#147) 3f33d3f
- Tower Duel rules: a tested `tower-duel/duel.js` that plays a whole two-lane card battle from plain data (#143) a4bac34
- Add Bowls Green: roll four biased woods to rest nearer the jack than the rival woods (#144) ffa2a51
2 earlier comments · 1 event
Market Barrow now has a playable page at /market-barrow/, listed in the catalogue and driven only through market-barrow/barrow.js. The serve, shell and town tests pass (103). The playtest.test.mjs cases for market-barrow and the scripted-round check pass, but I did not run the whole of playtest.test.mjs to completion. bun x tsc --noEmit printed only its usage text, so I can't say it passed. The forge runs the full check on this push.
What to look at
- Page: the village lane has four numbered stalls (Mill, Harbour, Orchard, Forge), each with a chalk price board of four numbers. Under the lane are a buy and a sell button for each good. The page adds no rules of its own.
- Barrow: it glides to the stall you travel to and carries the goods as small crates. The load is also written as a number above it.
- Controls: tap a stall, or press 1–4 or Left/Right, to travel. Left/Right is an addition: the playtest's keyboard test only presses arrows, Space and Enter, so something on those keys had to change the game. When the game ends, any tap or key starts a new one.
- HUD: day, coins and barrow load as the rules report them.
- Boards: the current stall's board shows today's price. The other boards show the price you would meet on arrival, which is tomorrow's price from
prices()in the rules. I chose this so the boards support planning; it adds no rule. - Visual rules: 360×280 canvas, fixed camera, hard shadows to the right, and a
#mutebutton with no.mp3. The only ambient motion is the awning scallops, which stop under reduced motion. Prices, loads and stall numbers are always numbers. The aria-label says how to play and the rules popup is four lines. - Saving: the best score is kept in
localStorage, and each new game takes a new seed. - Catalogue:
- Registration:
GAMESinshell.js, the rootindex.html<li>, and the README Games table and no-music list are done. A building in the town needs no edit, sincetown.jsdraws one perGAMESentry. - Share card:
og/market-barrow.pngwas made withbun scripts/og.mjs.
- Registration:
- Tests:
rounds.mjshas a scripted round that sells, buys an apple and wheels to the next stall until day 10.serve.test.mjsasserts that/market-barrow/and/market-barrow/barrow.jsanswer 200. The branch was already on top of main, so no rebase was needed.
Left alone: the trade panel is DOM buttons rather than canvas-drawn ones. It reserves 124px at the bottom, so the page uses its own fitLane instead of the engine's fit. The price-board text is a bit cramped at 360 wide; I did not redo the layout.
🤖 Generated with Claude Code
Market Barrow now has its playable page at market-barrow/index.html and its place in the catalogue, built on the rules in market-barrow/barrow.js. I have not seen the preview deploy pass yet.
The preview deploy had failed on the test "on a 360px phone every building of the real catalogue is still thumb-sized". With Market Barrow added, the catalogue is large enough that each building came out 33.3px wide on a 360px phone, against the 40px minimum. I raised the town canvas's minimum width from 600px to 740px, in plaza.js (MIN_CSS_WIDTH) and in the #c rule in index.html. Phones scroll the town sideways a little further. I did not touch the test.
plaza.test.mjs and serve.test.mjs pass locally. I did not run bun scripts/gate.ts, the design lint or the full suite. bun x tsc --noEmit printed its usage text rather than a clean result, so I can't say it passed.
The minimum width will need to grow again as the catalogue does. Making the town scale with the catalogue size would be the lasting fix. I left that out of this pull.
Market Barrow now has a playable page at
/market-barrow/, listed in the catalogue and driven only throughmarket-barrow/barrow.js. The serve, shell and town tests pass (103). Theplaytest.test.mjscases for market-barrow and the scripted-round check pass, but I did not run the whole ofplaytest.test.mjsto completion.bun x tsc --noEmitprinted only its usage text, so I can't say it passed. The forge runs the full check on this push.What to look at
prices()in the rules. I chose this so the boards support planning; it adds no rule.#mutebutton with no.mp3. The only ambient motion is the awning scallops, which stop under reduced motion. Prices, loads and stall numbers are always numbers. The aria-label says how to play and the rules popup is four lines.localStorage, and each new game takes a new seed.GAMESinshell.js, the rootindex.html<li>, and the README Games table and no-music list are done. A building in the town needs no edit, sincetown.jsdraws one perGAMESentry.og/market-barrow.pngwas made withbun scripts/og.mjs.rounds.mjshas a scripted round that sells, buys an apple and wheels to the next stall until day 10.serve.test.mjsasserts that/market-barrow/and/market-barrow/barrow.jsanswer 200. The branch was already on top of main, so no rebase was needed.Left alone: the trade panel is DOM buttons rather than canvas-drawn ones. It reserves 124px at the bottom, so the page uses its own
fitLaneinstead of the engine'sfit. The price-board text is a bit cramped at 360 wide; I did not redo the layout.🤖 Generated with Claude Code
Closes #169