No description
Find a file
Joey Yakimowich-Payne ee2c175963
test(chess): expand layouts e2e with 10 new scenarios
Covers gaps in the original Phase E spec:

- Solo play reaches the engine: picking Pawns-Only and Classic and
  asserting the rendered board matches the layout's piece placement
  (not just that the UI dropdown says so).
- Empty layout solo: documents current behavior (solo lets users
  poke at any layout, validator only gates multiplayer).
- Chess960 re-randomizes: takes 8 consecutive snapshots of the
  back rank and asserts they're not all identical (p(collision)^7
  is effectively zero).
- Valid ?fen query pre-selects Custom (inverse of the existing
  malformed-FEN test).
- Library operations: full save → star → unstar → delete round
  trip via the library drawer's aria-labeled buttons.
- Layout badge hidden for classic solo games.
- Multiplayer with Dunsany: full pipeline proof — picker →
  Create Room UI → server resolves + validates → room.created
  echo → joiner renders same Dunsany setup via room.joined echo.
  Compares rank-1 and rank-8 snapshots between two browser
  contexts to verify bit-identical rendering.
- Server-side rejection: sends a kingless custom layout via raw
  WebSocket and asserts LAYOUT_INVALID error with a human-readable
  king-related message.

New server-spawn block mirrors multiplayer.spec.ts so the layouts
tests can run in isolation or against an existing dev server.

24/24 Playwright tests passing (21 layouts + 2 multiplayer +
1 full-flow) in ~40s.
2026-04-18 20:28:56 -06:00
.github/workflows chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00
.sisyphus feat(chess): starting-layout foundation (Phase A) 2026-04-18 19:44:01 -06:00
docs chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00
packages test(chess): expand layouts e2e with 10 new scenarios 2026-04-18 20:28:56 -06:00
scripts feat(rete): add replay engine + state-hash determinism verifier (P3.3) 2026-04-16 15:25:13 -06:00
.gitignore chore: gitignore playwright transform cache 2026-04-18 16:27:47 -06:00
eslint.config.js feat(rete): add append-only event log with monotonic sequence (P3.1) 2026-04-16 15:24:11 -06:00
lefthook.yml chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00
LICENSE chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00
package.json feat(rete): add replay engine + state-hash determinism verifier (P3.3) 2026-04-16 15:25:13 -06:00
playwright.config.ts fix(rete): inject clock into EventLog; use tsc for DTS; fix cycle.test.ts private access; add Playwright worker limit 2026-04-16 18:25:49 -06:00
README.md chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00
tsconfig.base.json chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00
tsconfig.json chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00
vitest.workspace.ts chore(root): scaffold monorepo — Phase 0 complete 2026-04-16 13:32:21 -06:00

@paratype

A Doorenbos-style Rete II rules engine for TypeScript games, with an authoritative WebSocket chess demo.

Packages

Docs

Getting Started

bun install && bun run check