No description
- packages/chess/src/engine.ts — ChessEngine integrates all rule modules (pawn, knight, sliding, king, castling, en-passant, promotion, check, checkmate, stalemate, draws) into a playable game without the Rete production network - packages/chess/src/pgn.ts — minimal SAN/PGN parser with full disambiguation support (file/rank hints, full from-square) - packages/chess/tests/fide-games/classic-games.test.ts — 5 game tests: Fool's Mate, Scholar's Mate, Ruy López, Sicilian Defence, Italian Game All 5 tests green; typecheck clean. |
||
|---|---|---|
| .github/workflows | ||
| .sisyphus | ||
| docs | ||
| packages | ||
| .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