Fortify
Six castles, randomized alliances, and programmable troops.
Featured Match
Round result
Download seriesDraft an army and edit its programs
Pursuit spreads out and picks nearby targets. Formation uses scouts to find contacts, moves infantry together, and lets archers fall behind them. Each role has editable code.
Programs can inspect self, team, enemies, allies, contacts and tileAt(x,y). Target enemies explicitly with attack(enemy). A Falconer can read its own inbox and return sendText(teamId, text) or send(teamId, kind, point, strength, text). See the rules JSON for standard dispatch kinds. Use compose() to build text from observations and contains(msg.text, phrase) to interpret a message. Send a same-army report with sendFalconer(id, kind, point, strength, text). A recipient within three tiles of their Captain can return briefCaptain(message). The Captain reads briefings in inbox and can return issueOrder(kind, point, target). Units choose how to act on team.order.
Use resupply() within three tiles of a castle your team controls. Builders can use buildWall(point) and buildBridge(point) on adjacent tiles. A bridge takes two materials per span and must connect to land or an existing span. Each castle must draft one Captain. In Red vs. Blue, a fallen Captain’s army retreats. A side loses on Captain count when all three of its Captains fall. In rival matches, troops skip one order in three after losing their Captain. Adjacent infantry facing the same way can use brace(point) for frontal protection. High ground extends sight and low ground reduces it. Forests hide pieces from distant enemies and block attacks from inside. Scouts can placeBarrel(point) near walls and bridges. Placed barrels stay unlit until a unit lights them. A piece next to a visible barrel can call lightBarrel(barrel). Hold a castle courtyard uncontested to claim it for your team.