No description
- validateProfile(profile, layout) checks 4 rules: - E_PROFILE_NO_KING: layout must have ≥1 king per color - E_PROFILE_INVULN_KING: king cannot have CANNOT_BE_CAPTURED flag (per-type and per-instance) - E_PROFILE_ORPHAN_INSTANCE (warning): per-instance entry targeting empty square - E_PROFILE_ATTR_LIMIT: >12 distinct modifier kinds on one piece - E_PROFILE_DEADLOCK: reserved TODO (requires session simulation) - 17 tests covering all codes, both warning/error paths, and valid field integrity |
||
|---|---|---|
| .github/workflows | ||
| .sisyphus | ||
| docs | ||
| packages | ||
| scripts | ||
| .gitignore | ||
| eslint.config.js | ||
| lefthook.yml | ||
| LICENSE | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.base.json | ||
| tsconfig.json | ||
| vitest.workspace.ts | ||
@paratype
A Doorenbos-style Rete II rules engine for TypeScript games, with an authoritative WebSocket chess demo.
Packages
packages/rete— Rete II engine corepackages/chess— Browser chess demo (React + Vite)packages/server— Authoritative Bun WebSocket server
Docs
- SPEC.md — Engine specification
- PHASES.md — Development phases & perf budgets
- RULES.md — Chess rule presets
- PROTOCOL.md — WebSocket message protocol
Getting Started
bun install && bun run check