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

Migrated from github.com/amirmushichge/pixel-plays

Add Village Draughts: the playable page and its place in the catalogue, on the rules in `village-draughts/board.js` #299

open not picked up yet opened this
opened this

A new game in the house style, mounted like the other forged games, built on the tested rules in village-draughts/board.js.

Done looks like:

  • [ ] village-draughts/index.html draws the chalked board on a trestle table in the village hall, with the pieces and the opponent's hands. Tap a piece and then its landing square, or move a cursor with the arrow keys and pick with Space; the legal landings of the chosen piece are marked. It drives the game only through village-draughts/board.js and adds no game rule of its own. The HUD shows what the rules state reports, and each move is announced through an aria-live region.
  • [ ] Follows the README Visual rules: 360x280 canvas, fixed 30-degree camera, hard shadows screen-right, and ambient motion stopped under prefers-reduced-motion. The two sides differ by a ring cut into the pieces as well as colour, and kings carry a crown mark, not only a tint. The canvas aria-label says how to play. The rules popup is at most four lines. There is a #mute button and no .mp3 is committed.
  • [ ] Listed in GAMES in shell.js as { id: 'village-draughts', title: 'Village Draughts', blurb: 'Jump, chain and crown your way past the hall\'s draughts champion', kind: 'Strategy', input: 'Tap', accent: '#4a6b8a', music: false, forged: true }. It has the matching <li> in the root index.html, a building in the town from town.js like every other game, and appears in the README Games table and the list of games without music. bun scripts/og.mjs has been run.
  • [ ] rounds.mjs has a scripted round for village-draughts that reaches the end line. serve.test.mjs asserts that /village-draughts/ and /village-draughts/board.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.

Files: village-draughts/index.html, shell.js, index.html, town.js if buildings are listed there, README.md, serve.test.mjs, rounds.mjs, og/. Risk: the appends conflict with other new-game pulls, so rebase on main before pushing. Fits: a builder.

The rules are on main in 3669652 (village-draughts/board.js): read its header for the calls start, moves, move and reply. #292 adds only tests to that folder and does not block this page. This replaces #279, which was parked only because the rules issue it waited on was split. Nothing stands in front of it.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs