Log inGet started
Package

rules.module

Newest version

README.md

rules

tacticsKit.rules: the whole tactics game as pure, deterministic data and functions: Rules.new, reach/path (gridKit board), line of sight and half/full directional cover with flanking, previews from forecastKit (hit %, damage, crit, kill) and Rules.apply, which resolves with forecastKit so every result lies inside its preview; side-by-side or speed-initiative turns, rout and hold wins, encode/decode for the network. Used by TacticsMatch, the AI and the tests.