Play the demo
What it taught meA clear contract between modules is what lets several builders, human or AI, work in parallel without breaking each other.
This demo has the first story mission and skirmish. The free itch.io release has all ten missions of Act I.
Ribāṭ Tactics
Turn-based strategy on an eleventh-century frontier. A student of the Qur’an holds a river fort, and later his descendants carry the story across nine centuries.
- Engine and enemy AI from scratch. Plain JavaScript and canvas, no game framework: rules, pathfinding, fog of war, weather and a computer opponent that plans only with what its own units can see.
- Tuned by simulation, not guesswork. A headless simulator plays every mission with careful, average and reckless bots, and all 28 missions sit inside a target difficulty band.
- Built like a team. A written contract between modules let several coding agents own separate files at once, and checkers validate every map and mission before a build.