Warfront: Real-Time Strategy Skirmish Kit
README.md
skirmishVictory.rules
The six ways to win as pure rules with no engine calls: conquest (destroy every enemy building), annihilation (every unit and building), regicide (kill the hero), king of the hill (hold the centre alone for hillSeconds), treasury (gather treasuryGoal first) and survival (the defender holds until survivalSeconds). Victory.new(cfg, { teams, defender }) makes a judge; judge:step(dt, state) answers the winner and a reason once the match is decided, judge:objective(state, team) the objective line. The session feeds it the match state four times a second; the test suite drives it directly.