Log inGet started
Package

generate.module

README.md

battleMapsKit.generate

The seeded battle map generator behind BM.generate(opts) in battleMapsKit.api. It builds a point-mirrored (fair) tactics board around a chosen chokepoint — bridge (a river or chasm crossed by 1-cell-wide bridges, with slow flank fords on odd row counts), gate (a walled courtyard on a mound with stair gates and a dais) or pass (a rock ridge cut by a narrow pass) — adds terraced hills up to levels high with ramps or stairs to every raised area, places half and full cover near the fight, and returns a map in the same format as BM.get. Every answer passes BM.check and BM.isMirrored; the same options give the same map on every peer. Games call it through the API rather than directly.