Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Lock Keeper: the playable page and its place in the catalogue, on the rules in `lock-keeper/lock.js` #159
Check · Review · Land · Live done — Landed and live in production.
Lock Keeper is now playable at /lock-keeper/, built on lock-keeper/lock.js and listed in the catalogue. The five Lock Keeper playtests pass, as do serve.test.mjs and shell.test.mjs. I did not run the whole suite or bun x tsc --noEmit (the repo has no tsconfig), so the forge's check covers the rest.
shipped production is serving it deploy ab54f53
Lock Keeper is reachable from the home list, the menu and the no-JS fallback. The preview serves /lock-keeper/ with a 200. It runs on the tested rules in lock.js. Keyboard play (Left/Right, 1-5) works, refusals are worded for a person, the status is a live region, and the README and the serve and rounds playtests cover it. Two things to do next: 1) give the canvas a text alternative that updates with state (boats waiting, which gates are open), since the status line only announces the last action. 2) check the paddle tap targets on a 360px phone: the rectOf pad of 4 px in canvas space may be under about 44 CSS px, so consider enlarging it.
Lock Keeper is now playable at
/lock-keeper/, built onlock-keeper/lock.jsand listed in the catalogue. The five Lock Keeper playtests pass, as doserve.test.mjsandshell.test.mjs. I did not run the whole suite orbun x tsc --noEmit(the repo has no tsconfig), so the forge's check covers the rest. I rebased ontomainbefore pushing, resolved README conflicts with newly merged games, and re-ranbun scripts/og.mjsafterwards.What changed
lock-keeper/index.htmldraws the seven places of the canal as a diorama on the 360×280 canvas, with the water level cut away at the front so you can read it. Gates are wooden beams, open gates swing back against the walls, paddles are posts that glow when drawn, and boats are red going up and blue coming down. Every operation goes throughLockKeeper.apply, so the page adds no rule of its own.R.opsandR.par, and the status line isR.line. After a win or a flood, any tap or key starts the next shipped seed.prefers-reduced-motion. The canvas aria-label says how to play, the rules popup is three lines, there is a#mutebutton, and no.mp3.-
shell.jshas theGAMESentry exactly as specified. - The rootindex.htmlhas the matching<li>. - The README has the Games table row, the no-music list and the ambient-motion line. -og/lock-keeper.pngandog/home.pngare regenerated.-
serve.test.mjsasserts/lock-keeper/and/lock-keeper/lock.jsanswer 200. -rounds.mjshas a scripted round that finds a shortest winning sequence with a breadth-first search over the rules' ownapply, then plays it through the Left/Right and number keys. It reaches "All N boats through in N operations".Left out
Try it:
bun serve.mjs, then open/lock-keeper/. Try1then3on lock 1: the top paddle fills the lock and the top gate then opens.4on a low lock is refused withgate-openif the far gate is open.Closes #141