Season.module
README.md
Season
Builds the seeded, branching season map of a ROGUE ICE run: Season.build(rand) returns { acts = { [a] = { name, boss, rows = { [r] = { nodes = { {id, type, row, col, links, team?, visited} } } } } } } for Core.RULES.acts acts of rowsPerAct rows. Rows 1..6 hold 2–4 nodes with types weighted by Core.RULES.nodeWeights (row 1 of act 1 all matches, no shop on row 1, rivals from row 3, at least one fight per row), each linked to 1–2 nodes of the next row with every node reachable; the last row is the act's single boss node. Also Season.find(map, id), Season.rowNodes(map, act, row), Season.bossOfAct(act).
Called by game.rules.Engine (the rules engine behind the game.rules.Director component). Pure: pass any () -> number random function in [0,1).