- 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
Description
Languages
HTML
99.4%
TypeScript
0.5%