No description
Adds PerTypePanel component (left panel of ModifierProfileEditor). - Lists existing TypeModifier rows with piece type, color, and described value; each row has a delete button. - Inline add form: piece type, color, and modifier kind selects + a uiForm-driven value input (number, percentage, promotion-target, or placeholders for direction-set/capture-flags). - Save button disabled via Zod schema.safeParse — invalid values (e.g. range-bonus=100 > max 7) cannot be submitted. - Wired into ModifierProfileEditor left panel via perType state. - 2 new Playwright tests: add-modifier row appears, invalid value disables save. |
||
|---|---|---|
| .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