Willem van den Ende 4cdb048dfc refactor(story2): immutable dealDamage, reference guard, negative damage validation, spec precision
- dealDamage returns new Character instead of mutating in-place
- SelfDamageForbidden uses reference equality (this === target)
- Negative damage throws at the boundary
- Removed duplicate Health.maxHealthForLevel (Level.ts is source of truth)
- Allium spec uses max(0, ...) for health floor precision
- New property: NegativeDamageForbidden (11 total properties)
2026-06-13 15:44:46 +01:00
2026-06-03 08:41:06 +00:00
2026-06-12 22:08:36 +01:00
2026-06-13 15:36:43 +01:00
2026-06-03 08:41:06 +00:00
2026-06-03 08:41:06 +00:00
2026-06-03 08:41:06 +00:00
2026-06-03 08:41:06 +00:00
2026-06-03 08:41:06 +00:00
2026-06-03 08:41:06 +00:00

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
run through pi coding kata
Readme 4 MiB
Languages
HTML 99.4%
TypeScript 0.5%