d3cc48c0f7a26a66f151330ea37af6dee8ac29fd
- Level value object (1..10, level-capped health) - Health value object (non-negative, pure sub/add) - Status discriminated union (alive | dead) - Character entity with private constructor and static factory - 9 fast-check properties covering creation invariants - Allium spec with entities, rules, and invariants
RPG Combat
Use this starting template for your implementation of the game rules. Requires Node.js and npm. Install dependencies, then run the tests:
npm install
npm test
Languages
HTML
99.4%
TypeScript
0.5%