A seat lived in the browser's storage alone, and Safari clears that after a week away, or at a word from the person on another device. Now every seat taken is banked as well in an HttpOnly cookie the server writes, which such clearing leaves alone, and the hall takes its seats back from the bank on arrival. For a browser that lost even the cookie, the ledger notes the address each seat was last used from, as a salted hash, and a name given in the hall or at the table gets its seats back from the same address, with a new token; where the address differs, two people at the table share it, or the host gave the seat to a housecarl, the table is only counted, and the host's phrase or the keeper's link is the way back. The keeper's script finds a name across tables. The seat endpoints answer only this site's own pages. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CCLa2PaEeCj8njQZSWGqHx
Hnefatafl
The Viking board game, in the browser: the attackers must take the king, the king must reach the edge. Tablut, the nine-by-nine game Linnaeus wrote down in 1732, by default, on a board that shows its age; Copenhagen rules on the eleven-by-eleven board, where the king needs a corner, as an option.
Built on the game kit: src/lib/game/ is the game (rules as data in
rules.ts, the board's mechanics in board.ts, the engine in index.ts,
a short alpha-beta bot in bot.ts), src/lib/components/Board.svelte is
the board, and everything else is the kit's hall, tables, gallery, ledgers,
reports desk and ops tools. docs/conventions.md is the house style; the
guide here departs from it in one way, walking the page in words and one
drawn figure rather than screenshots.
npm install && (cd server && npm install)
npm run dev:all # server and site together; Ctrl-C stops both
npm run server # the game server on port 8789
npm run dev -- --host
Tests: npm test. Deploy: deploy/deploy.sh <ip> after deploy/README.md.