Game Manual

Build a Better Bot — design pages, rendered from the repo docs.

Arena — combat round evaluation

settled decided — build to this page

Combat is round-based initiative on a fixed 2D grid, and the arena is its referee. At each round start the initiative queue fills with every active bot, each entry gets one turn, and queue exhaustion closes the round. The order the first round opens in is the battle’s turn order: every body holding slipstream, then every other body, each group in the level’s placements as its file lists them and then the player’s bot (SPC-016). Every later round opens in it: a bot keeps its place however it moves or swaps, and a bot that joins mid-battle or comes back after leaving takes the last place, slipstream or not (RND-013). Every body with a side that can hold a buff takes a turn (buffs, BFF-039): the decoy, which has no thread, plays each of its turns empty, in one step of its own unless an idle run holds it, and rubble and a nest, which refuse every buff, take no place. A grant moves one bot to the head of the round under way and leaves the turn order as it was (RND-011). A bot’s turn is one thread turn per thread, in planning order. Each step carries out the arena’s part: one clashing bot’s thread turn, whose thread fires its action and whose combat stack resolves before the step ends, or an idle run, the idle thread turns up to the next clashing bot’s turn (idle and clash § Idle runs). Each part is chosen a step ahead, as the one before it is carried out, so the next round opens with its first choice as the last one closes (thread decision model § Picking a plan). Initiative advances once the bot’s last thread has acted.

Modes, clashes and harm. Every bot with a thread is idle or clashing (idle and clash). A clash starts between turns, where a bot stands inside a rival’s danger zone that the rival sees, a rival’s blow hits it, or a clash it could join is close, and ends once both bots are a full move clear of each other’s zone (CLH-005, CLH-006). Only a clashing bot’s threads search plans; an idle bot’s play the idle tree, which walks around harm: thorns, the cells the round clock hits as the next round opens, and, for the player’s side, warned tiles (CLH-008). Where harm lies across every way to an idle bot’s point or goal, it clashes with the harm itself (CLH-009). Round names (arena-round-N) are a public contract; the activity log’s consumers group the battle’s story by them.

The pipeline. No bot, mod, or thread ever mutates combat state. A mod lists its effects as requests, the arena carries each one out with the handler its kind registers, and every mutation happens in that one pipeline, which is what makes outcomes ordered, observable, and testable (engine). Each handler writes what it did to the shared activity log, stamped with the mod that fired it; the log narrates, it never governs. That ordered stream is also everything the client has to work from. The fight you watch is those events, composed:

push — geyser into a crunch One resolved push, rendered from its own event: the geyser drives the body out, the crunch is the wall it stops against.

Preparation. A bot’s combat entry — thread creation plus per-mod combat_start() — runs exactly once per combat, lazily for mid-combat entrants. Leaving the grid unprepares; re-entry prepares anew. A mod reads the board through a view from the acting bot’s eyes (its location, the bodies it can target, the extents, the impassable tiles), which the arena builds when asked and drops whenever the board changes, so a mod always reads the board as it stands (BDQ-006).

The grid. One bot per tile; placing onto an occupied, impassable, or out-of-bounds tile is an error, never a shuffle. Movement paths 8-directionally around obstacles and bodies, diagonal and cardinal steps equal-cost. A bot at zero stamina leaves the grid for the recovering queue, and simultaneous exhaustions resolve in a single step so no half-dead bot acts.

Terrain. Every tile type affects every bot the same way. Four impassables and three passable effects:

  • rock — walls movement, placement, and sight.
  • shutter — a shut shutter’s tile, which walls movement, placement, sight and slides as rock does and downs nothing. An open shutter’s tile is floor. A level declares a shutter as a machine, never under obstacles, and no terrain change creates or removes one (TED-002).
  • door — a shut door’s tile, which walls movement, placement, sight and slides as rock does and takes no damage. It opens for good, becoming floor, only when one of the player’s bots, or a bot whose visit’s next target it is, fires the arena basic interact at it from beside it. A battle declares its doors under doors: (point § Doors, DRS-001 to DRS-006).
  • pit — walls voluntary movement; sight carries over it. Lethal to an external force: a push or pull off the adjacent lip puts the bot in the pit, downed outright. Forced movement from further back halts at the lip like a rock.
  • difficult — passable, but entering costs a moving bot an extra step of its move, charged once on entry. A move without the steps left to pay stops short at the edge, and nothing carries over to the next move, so a one-step move cannot enter difficult ground and routes around it. A move that can pay for a crossing still walks around it when the clear route costs fewer steps.
  • thorns — entry damage on every movement form (own move, slide, dash). Positional cost, not a hit: guards neither block nor amplify it.
  • flow — entering downs the bot outright. Voluntary movement treats flow as a wall; forced movement still enters, and stops in the first flow tile it reaches.
The tile vocabulary Two impassables, three passable effects. Every tile type affects every bot the same way.

Rock— impassable

Pit— impassable

Shutter— impassable

Turret— impassable

Capacitor— impassable

Lodestone— impassable

Nanite barrel— impassable

Difficult— passable, with an effect

Thorns— passable, with an effect

Flow— passable, with an effect

Cover— passable, with an effect

Slick— passable, with an effect

Entry effects fire on movement only — initial placement and spawns are exempt — and land in the activity log as TERRAIN_DAMAGE events. A body set down by a reposition or a swap pays its destination like one that walked in. A forced slide resolves every tile it crosses, so a push that drives a foe through thorns is charged per tile; flow and an obstacle boundary (rock, pit) stop the slide. A bot that falls or is driven into flow stands in that tile, off the one it came from, until it is downed and taken off the board. A lip fall covers no ground, so the force that caused it narrates it: the push or pull publishes the drop it made — who fell, the lip, and the pit tile — and the drag is drawn from that, beside the hazard that downed it. A plan reads terrain through the rules that play it, never through decision rules of its own: flow joins the impassable set, thorn damage a bot takes counts in its projected damage, and difficult ground costs the step that enters it.

Terrain edits. A glitch can change the terrain mid-battle in two ways only: it turns thorns, difficult ground or oil into bare floor, leaving a slope as it is, or it turns bare floor or difficult ground into thorns. Thorns replace difficult ground because a tile holds one terrain. A landing barrage is the one other source: it leaves a crater on the empty floor at its center (TED-001). Nothing creates or removes rock, a pit, a shutter or flow (TED-002). Terrain a glitch makes is ordinary terrain, with no duration, no side and no mark of the glitch. It is written into the grid’s terrain map through the grid’s one setter, so every rule, save and plan’s board reads it as the map’s own. It changes only when something changes that tile again, and the next battle starts on its level’s map, as every battle does (TED-003). Each bot’s view is dropped whenever the board changes, so every clashing bot plans its next turn on the new map (TED-004). Laid thorns hurt every bot that enters them, the player’s included (TED-005). Each fire that changes terrain logs one ARENA_TERRAIN event naming the glitch, the aimed tile, and each changed tile with its old and new terrain (TED-006).

Attribution. Every event that changes a bot’s stamina says who caused it and with what, so a reader of the log can name both bots without consulting the board. A damage event carries each struck bot’s stamina before and after the blow. A bounce — damage sent back at a hostile attacker by barbs (kind thorns) or a reflect barrier — and an active guard’s strike back (kind active-guard) are each one ARENA_BOUNCE naming its kind, from the bot dealing it, naming the attacker it struck. An exhaustion names the bot and mod whose damage took the stamina to zero: the bot whose bounce made the kill, the applier for a corrode tick, the pusher for a hazard it drove the body onto. Neither is named when no bot did it, as with a sacrifice or a bot’s own step into thorns. A corrode tick names the bot and mod that laid it, terrain damage names the bot and mod whose forced move put the body on the tile, and every buff start and end names the bot that applied the buff. Barbs is a glitch’s coat, not a mod, so its bounce (kind thorns) names no mod.

Temporary stamina. Temporary stamina is stamina above a bot’s max. A hit, once vulnerable, weakness and shelter have changed it, takes the bot’s temporary stamina first and its real stamina only after; a collision, a terrain hit and every other damage take it first too. Losing it is taking damage: it breaks the cloaks of the bot that took it and the bot that dealt it, enters the loss record revenge returns, and a blow through it that takes the last real point credits the down (TMP-001). No heal restores it, and full stamina means the real stamina at its max (TMP-002). Each landing adds to it with no cap; it is no buff, so it has no clock and nothing strips it (TMP-003). It ends with the battle and never follows the bot out (TMP-004).

🔩 Tune-Up
Power Blue

Target ally gains 2 temporary stamina and 1 embolden.

lays it, through the one request kind that does (TemporaryStamina). A plan counts it as stamina: an ally’s gained temporary stamina is payoff, its lost temporary stamina loss, and a foe’s projected damage takes it first. Each published bot carries temporary_stamina, and the hull draws each point as one more gold mark after the held and lost ones, the max never counting it (landscape-stage.md § 4).

Rubble. A rubble block is an obstacle with no side, whoever made it (TED-008). It keeps an owner, the side that placed it. The log and the supply bin’s demand read the owner, and no targeting does. Rubble blocks movement and sight, stops a slide, and stands until damage or scrub destroys it. The battle’s end removes it, and it counts toward neither side when the battle’s win or loss is detected (TED-009). The engine keeps it a body so it can be hit, and every damage applies to it, whoever deals it. A blow that hits several bodies (an area or a line) counts a block wherever it would count a rival, a block its thrower’s side placed included. Ricochet’s arc leaps only to a rival, so it never takes a block (TED-010). Damage is the only thing that affects rubble: it refuses every buff, debuff and stress, and no heal restores it (TED-011). No bot counts rubble as an enemy or an ally. Rubble blocks sight, so a bot never picks a rival that rubble hides. Rubble has no side, so an area pull (magnet) leaves it where it stands (TED-012). A bot breaks rubble on purpose through a plan that names the block, worth only what breaking it lets the plan’s later turns do (thread decision model). The decoy, the oozes and the medic are summoned allies and fight for their summoner’s owner (SUM-001, ARN-018).

Forced moves and stabilize. A forced move is one bot making another move, and there are two: a push drives a body straight away from the mover, and a pull drags it straight toward a tile, the mover’s own or a tile it names. Every ability that moves a body is one of these at its own targeting and extent: the shove basic, longshot’s knockback, repulse and bulldoze push; winch, lure’s drag and magnet, a pull of every body with a side around a tile, pull. A forced move cut short by a body, rock, wall or edge, a knock slide or a belt’s slide included, is a collision: the moved body alone takes collision_damage, whatever moved it (COL-001). Arriving where the move was headed, beside the puller or against the body on magnet’s tile, is none. A collision is no blow, so no guard, dodge, stance answer, embolden, weakness, vulnerable or shelter meets it, only the chassis’s plate; it counts as damage the bot that caused the move dealt, which breaks that bot’s cloak and credits the down to it (COL-002). Bulldoze’s guard bonus is a strike of its own that a collision adds. A stabilized bot refuses every forced move (buffs § Stabilize, BFF-045): when a forced move asks to move it at least one tile, it stays put whether or not the path was clear, and the refusal is no collision (LOK-003, LOK-004). Bulwark lays stabilize on stomper and maglock on the player’s chosen bot, visible to every bot (LOK-001). Stabilize is timed like every timed buff and ends as its holder’s turns run it out, whatever it refused (LOK-007); a reposition, a swap and a guard blocking a hit end nothing (LOK-005). It does not stack: a new maglock restarts its turns (LOK-002). A strip that takes beneficial buffs takes it too.

Advertisements. The arena remembers what every thread intends: one advertisement per (bot, thread), covering the bot’s next advertised_turns turns, published as the bot enters and again each turn it acts, removed with the bot, never saved. Every read of it passes one assessor seat (Arena.advertised_paths). A plan’s board plays other bots’ advertised turns through the arena’s own rules (thread decision model). The design is threads § Advertisement; the spec family is ADV in threads_spec.yaml.

Telegraph. A telegraph warns a bot of what lands on it before its next turn. It is read off the first turn of the bot’s plan’s board, which plays the bot’s own action and then each other bot’s next advertised turn, in initiative order, through the arena’s rules. The board is the one on which the last of the bot’s threads to fire played its chosen plan’s first turn; it already holds every action the bot took this turn. As the bot’s turn closes, each hit a rival lands on it on that board is logged as a telegraph from the attacker, in the order the hits land, when it takes stamina. It names the tile the attacker strikes from, the mod, the target and the stamina the hit takes (TLG-001). A telegraph is lethal when the bot has no stamina left once the hit lands (TLG-002).

A forced move’s telegraph also names the force. Its damage is the collision and the thorns and drop the move drags the bot into, so one move is one telegraph. A forced move into a duct’s grate names the tile the trip lands the bot on (circuit terrain § Duct), and one into an open relay’s pad names the other pad the relay lands it on (Vesper IV § The relay); each is telegraphed though it takes no stamina, and any other forced move that takes no stamina carries none (TLG-004).

A bot whose threads fire nothing, because a lockdown took its turn or it has no thread, is telegraphed off a plan’s board opened as its turn closes, on which it passes (TLG-006). Every board is a copy of the arena with its own streams, so building telegraphs draws nothing from the battle and changes nothing on it, and a speculative copy telegraphs nothing (TLG-003). The board record holds each hit as the rules land it (state/board_record.py), and station/arena/foresight/telegraph.py reads the telegraphs off it. The arena snapshot publishes the telegraphs each bot last received (TLG-005), and the intent overlay’s at-risk points and hit arrows draw them (power station § On screen).

Sight. Sight gates targeting rays. It is the straight segment between tile centroids, blocked only where it passes through the body of a blocking tile: rock blocks, a pit is seen over, a corner graze stays clear. A ranged targeted ability skips a foe out of sight — a bolt, a stun, a strip, a pile of stress and lure’s drag alike — and ray aim and line strikes stop at the first blocker, all reading the same published blockers. What the caster does not aim down a line is gated by nothing: ricochet’s arc leaps from the body it chains from, and banish’s stun cascade is air cover over the stressed crowd rather than a shot. Only the primary is sight-checked, and it always is — the spenders empty the pile they can see.

Timed buffs. Every buff type’s lifetime, cap, side and home is its type row (buffs). A timed buff counts down as each of its holder’s turns closes and ends at zero, whoever laid it and whether or not its applier still stands (BFF-029); one that lands during its holder’s own turn does not count that turn (BFF-030). A sleep or stun takes each thread turn of the bot’s turn, writing its skip, and ends after the bot’s last thread; the turn opens and closes as any turn does, so it counts. Each corrode and bloom landing moves its tick of stamina as each of its holder’s turns it counts closes, before the countdown: a corrode a blow charged to its applier, a bloom a heal (ARN-012, BFF-037, BFF-038). A next-turn form is brief: laid in its holder’s turn, it stands through the holder’s next turn and ends as that turn closes, so it is paid for every turn it is wanted (TRL-011, BFF-031). The woozy a stun or a sleep leaves is brief too (BFF-025). A body downed holding buffs ends each as downed (BFF-033). A held stance stands apart from the buffs, on no timer, until it is replaced, consumed by its own until, its holder is downed, or the bell (stances). A body is concealed while it holds a cloak (CONCEALED_BUFF_TYPES): rivals’ views leave it out for the cloak’s turns, until damage its holder deals or takes spends it (ARN-006, ARN-013, BFF-044). Ambush-shell’s cloak is granted at each encounter’s start and spent by the damaging hits its wearer deals from under it (one on a bare body, more where the chassis pays for it, SPC-017), and a cloak stands beside a held stance. The bell that ends the level takes every buff, stance and cloak, since no combat state leaves a level (state.md). Arena-side filters key on events, buffs and held stances, never on which mod granted them.

Stress. A body carries a pile of stress, and what that pile permits is the arena’s one authority on control. Every control move climbs the same ladder, read from the target’s published pile alone, so an NPC casting a stun plays exactly the rules the player’s bot does:

  • one stress opens the body to a stun or a seizure;
  • three arm the pile, which is also its cap between abilities — no body carries a fourth stress once an ability has resolved, and nothing publishes one.

A control move asked below its gate fizzles: nothing is taken, and one stress lands instead. The refused cast is the setup the next one holds by, so a fizzle is never a dead turn. It is narrated as its own beat, carrying no authority beyond the stress.

Every ability that touches stress resolves in one order (STR-011): it adds its stress, applies the multipliers that read the pile, relieves what it spends, and then checks the pile for an explosion. Stress never explodes on arrival, so within one ability a pile can stand past three and every multiplier reads it whole. A gate reads the pile after the ability’s own add, and the ability’s other effects — a stun, a seizure, a root — land after the check, so a seizure wakes a body its own explosion stunned. A pile the ability leaves at three is armed and steals nothing; one it leaves past three explodes: the holder loses its turn and the whole pile empties (STR-012), so the stress after it starts a new pile. Spenders are the other way to empty a pile —

✋ Interrupt
Power Pink

Stuns up to 3 stressed enemies within three tiles, spending their stress; each loses its next turn.

,
⚡ Discharge
Power Pink

Replaces each stress on a target with 2 damage.

,
🚫 Banish
Power Pink Yellow

Deals 1 damage to any target in sight and stuns it and every other stressed foe; each stress counter the target carries adds 2 and is removed. A body carrying no stress takes a counter instead of the stun.

and
🎛️ Override
Power Black Pink

Takes control of a stressed target in sight, relieving 1 stress. SCRAMBLER adds 2 stress first.

relieve the stress they cash,
🎛️ Override
Power Black Pink

Takes control of a stressed target in sight, relieving 1 stress. SCRAMBLER adds 2 stress first.

leaving the rest standing. The whole ramp exists to create one decision: blow an armed pile for a stun, or cash it.

A bot publishes its pile depth and its armed state (STR-010), so a client draws the ladder without counting buffs: 0–3 pips under the standing pip convention, the armed state distinct at three, and a fizzle a visible beat. NPCs play the same ladder with the same mods, fizzles included (STR-003), and with their own supply bins. No lane draws past three pips whatever it counts; the exact figure belongs to the card that states the bot’s stats.

Battles. A Battle runs one configuration in a dedicated arena; a level runner cycles a level’s battles with a fresh arena for each; the scheduler selects levels and owns runner lifecycle. The only door into arena assignment is Engine.select_level(). A level’s placement may name a specialization, and the bot it fields carries it; one its chassis does not declare is refused when the game data loads, naming the level (BTL-024). A battle is won once none of the opponent’s fighters stands on the board; a sideless body the level places, such as rubble cover, is not one of them, so the player never has to break it to win (BTL-025). A placement may name a story flag and its value, flag: { <name>: <value> }, and is printed only while the flag holds that value when the battle is built; the level card shows the placements the flags pick at that moment (BTL-026).

Player-side placements. A placement may declare side: player, and its body fights on the player’s side for the whole battle. The battle prints it into the opponent’s stable as it prints every placement, so its owner stays the opponent, and stamps the player’s side on it, which its copy and its save carry. Its allegiance reads a charm first, then that side, then the owner, so a charm and a player-side placement are the only two things that part owner and allegiance (ALG-001, ALG-007), and the snapshot publishes the allegiance, so the stage draws it as an ally. Rivals treat it as a foe, and points, the idle tree and the ask read it as any bot on the player’s side; it uses a reach zone (CLH-001). Its placement’s own motivation wins over the player’s side’s, and it interacts with no door (DRS-005). It holds neither side’s result: it is no opponent fighter (BTL-029), and the battle is lost on the player’s bot alone (BTL-016), so its downing ends nothing. A side other than player is refused at load, naming the level (BTL-032).

Reinforcements. A placement may declare enters: { round: <n>, through: [x, y] }: it enters its battle at the start of round n, at its location, or at the nearest standable tile when a body stands there. Named through, a shutter’s tile, it is turned away and never printed while that shutter is shut. Named through, the pad that is its own location, it waits at each round opening that finds its relay held and enters at the first that finds it open (PAD-010). A reinforcement joins the opponent roster as it enters, which is otherwise fixed when the battle starts (BTL-021), and entering, being turned away or first waiting writes an ARENA_REINFORCEMENT entry. The battle is won once every opponent fighter printed so far has left the board, with any reinforcement still due or waiting: a due reinforcement is a timer on slow play, never a condition of the win. The combat snapshot lists those still due, each with whether it waits, and the level card shows when each enters (BTL-027, BTL-031, LOF-016).

Machines. A battle’s machines place shutters, belts, ducts, turrets, capacitor machines, lodestones, nanite barrels, relays and switches on its floor tiles, and a capacitor or a lodestone also on rock. Machines are battle state: the arena’s board holds them, its copy() copies them and a turn preview reads that copy, and the combat snapshot and the level card show each with its state (MCH-001, MCH-002). The player fires one with the room glitch hotwire (power station), and a board trigger fires one when its source happens: a round its schedule falls due at, a door opening or closing, or another machine’s fire (circuit terrain § Board regions and triggers, TRG-006, CLK-001 to CLK-004). Each fire writes one ARENA_MACHINE entry naming the glitch or the board trigger (MCH-005), and deals the constants of the machines section and collision_damage (CLK-011).

  • Shutter — fired, it flips, open to shut and shut to open; it cannot shut while a body stands on it (MCH-004).
  • Belt — a straight run along one row or one column, from from to to. Fired, it slides every body on its run in its direction, front body first, each through the grid’s one forced-movement path until something stops it, past the run’s end; a stabilized body refuses the slide, and a first step off a pit’s lip drops the body. A slide cut short is a collision, and the slid body takes collision_damage (MCH-006, MCH-007, COL-001). A body that drops has left its tile, so the bodies behind it close up to the lip and stop there: a line against a pit’s lip loses one body a fire (MCH-008).
  • Capacitor machine — two or more capacitors listed first to last, each on a floor or rock cell and blocking as rock does; it takes no schedule. Fired, it deals capacitor_damage once to every body on its arc route: the chains of hops from its first cell to its last with the least total arc length, each hop joining two conductors (its own cells, flow cells and bodies outside cover) at most two cells apart with clear sight. It is then spent until the arena’s next thread turn (CAP-001 to CAP-007).
  • Lodestone — one floor or rock cell, blocking as rock does, facing one way. Fired, it pulls each body in its lane toward itself, nearest first, through the one forced-move path, so a body stopped short collides and a stabilized or rooted body stays (LDS-001 to LDS-004).
  • Nanite barrel — one floor cell, blocking as rock does. Fired once, it heals every body on the eight cells around it by nanite_heal and leaves floor (NBR-001 to NBR-003).

Each machine record declares its operation: fired, one instant effect each time (a belt with no bed, a turret, a capacitor machine, a lodestone, a nanite barrel, a switch); switched, a state that stands until it fires again (a shutter, a flatbed, a three-grate duct); or none, a machine hotwire never fires (a two-grate duct, a relay) (MCH-009). No machine’s fire is a blow.

Ducts, turrets, relays and switches are circuit features, and circuit terrain gives their rules, as it gives the board regions’ and the board triggers’. A bot beside a turret also fires it, with the arena basic torch (TRT-002).

Points. The player’s points are battle state on the arena too: the arena places, moves, removes and spends them, its copy() carries them, and each battle starts with none (point, PNT-001 to PNT-013). A positive point is one more point of interest of the bots on the player’s side, and a negative point’s warned tiles one more source of their projected damage (thread decision model).

Scenery and painted ground. A battle’s scenery places art on rock or pit tiles, the border’s rock drawing as its wall, and its painted paints floor tiles holding no obstacle; any other tile is refused at load. Neither changes a rule: no walk, line, plan, score or save reads them (SCY-001, SCY-002). A scenery placement may start hidden and name a change: an occasion of its level in the at: shape, and appear, leave or swap with a to: name (SCY-005). A painted entry may name a quarter of its tile, and then draws its sprite in that quarter cell alone, over the tile’s floor or its painted ground (SCY-007). A battle’s floor_variants choose a floor tile’s floor variant, numbered from 1, for the whole tile or one quarter of it, in place of the one the floor’s noise picks; the level environment draws its own variant of that number, its last where it has fewer, under any painted ground. A floor variant changes no rule, lies on a floor tile holding no obstacle, and is declared once for its tile or quarter (FLV-001), and the level card and the combat snapshot carry each as declared (FLV-002). An occasion consumer fed from the live log writes one ARENA_SCENERY entry when it reads that occasion, at most once per battle, and the client applies each entry to the battle’s scenery as declared, so no play state holds scenery (SCY-004). The combat snapshot carries every entry written since the running battle started (SCY-006). The level’s end is an occasion like any other, and the result curtain draws its changes on the last board.

A battle ends in a pass of the player’s bot, one thread turn per thread in planning order, from the thread turn after the one that decided it (phased turn rulings 2 and 3). The moment the battle is won, the victory pass gives the bot a turn of its own in the cleared arena, where it acts as in any turn and can heal; a win in its own turn first closes that turn at the winning thread turn. Then the bot moves to recovering and the next battle opens (BTL-007, BTL-008, BTL-011). The level’s final battle completes the level at once (BTL-012). The moment the bot is downed in a battle not yet won, the death pass plays each of its threads as a lost thread turn whose THREAD_CHOICE names it down, ahead of every thread turn still owed, with no turn opened for it; a bot still exhausted after the last ends the level PLAYER_DIED (BTL-016). The victory pass and the death pass are never an idle run. A fight whose clashing bots stop losing stamina ends on the stalemate window instead, which counts only clashing bots’ turns (BTL-017). Battle state is per-battle, by standing rule: battle state never carries over between battles — each battle opens with a fresh arena and a whole stalemate window, whatever its predecessor counted — while town state may carry. The bodies themselves are not battle state: what a bot wears between fights rides its own artifact (state).

Derived specs — engine/bbsb_engine/test/combat/combat_spec.yaml · ARN arena-core · RND initiative-rounds · EVP event-pipeline · STR stress-ladder · GRD grid · TRN terrain · LOS line-of-sight · BTL battle-levels · ATR event-attribution · TLG telegraph · TED terrain-edits (rubble included) · LOK locks · SCY scenery · MCH machines · CAP capacitor · LDS lodestone · NBR nanite-barrel · PNT points · DRS doors · CLH clashes · IDL idle · MTV motivations, designed in idle and clash; engine/bbsb_engine/test/bot/bot_spec.yaml · TMP temporary-stamina; the round clock and the circuit features (CLK, BED, SLC, LGT, NST, DCT, BRG, TRT), board regions and board triggers (TRG) are governed by circuit terrain; engine/bbsb_engine/test/scoring/scoring_spec.yaml · BDQ board-queries, the view a mod reads its board through. SPC-017 — ambush-shell, the cloak spent by the declared-numbered hit — sits in arena-core; the chassis options are designed in docs/design/bot-specializations.md § 3. Level selection and scheduling live in their own page, level-scheduling (LOF / SCN / LSL).

Terms

TermMeaning
machineA shutter, belt, duct, turret, capacitor machine, lodestone, nanite barrel, relay or switch a level places on a battle’s board (MACHINE_KINDS). hotwire fires each but a two-grate duct and a relay, a board trigger fires one it names, and a bot’s torch fires a turret.
shutterA machine tile that is floor while open and holds the shutter obstacle while shut.
beltA machine run of floor tiles with a direction, which slides the bodies on it when fired.
sceneryArt a level places on rock or pit, which changes no rule.
painted groundFloor art a level paints on a floor tile, which changes no rule.
quarter cellOne quarter of a tile, named by its corner (northwest, northeast, southeast, southwest): where painted ground naming a quarter draws, one sprite at its native size (SCY-007).
pieceOne of the four things a level places on a battle’s board besides its bots and tiles: a scenery placement, a painted tile, a machine or a barrage.
player-side placementA level placement declaring side: player: printed by the battle, fighting on the player’s side, holding neither side’s result (BTL-032). Distinct from the player’s own bot, which the player owns, and from a seized rival, whose side an override holds.
reinforcementA placement that enters its battle on a named round, at its location, through a named shutter when it names one.
blowA bot’s damaging act aimed at or covering a body, landed through land_blow with that bot as its source. A tick, a hazard, a bounce, a glitch’s fire and a machine are not blows.
targeted abilityAn ability that names its own tile or tiles; the bodies there are its targets. Distinct from an area ability, which lays a template. Its request kind declares Ability.TARGETED (Request.ability).
area abilityAn ability that lays a template, a fixed shape of tiles, wherever it is aimed; the bodies inside are its occupants. Its request kind declares Ability.AREA. A request kind that acts only on its own bot, places a body or summons one declares Ability.NEITHER.
hostile areaAn area ability whose request kind can harm a rival (harms_rivals): it damages, lays a debuff or forces a move. Its template catches no body in cover (CVR-004), while an area that heals or guards reaches into cover.
targetA body a targeted ability picked. Distinct from an occupant, which an area caught.
occupantA body inside an area ability’s template.
collisionA forced move cut short by a body, rock, wall or edge, terrain slides included; arriving where the move was headed is none. It deals collision_damage to the moved body alone, is no blow, and counts as dealt by the bot that caused the move (COL-001, COL-002).
explodeOf stress: a pile an ability leaves past the ladder’s top, three, stuns its holder and empties the whole pile (STR-011, STR-012). Distinct from charge, which detonates.
hitOne body’s damage from a strike, an area attack, a corrode tick or a detonation. A collision is damage but no hit. Guard blocks only a targeted strike’s hit, whole (BFF-050); vulnerable adds to every hit (BFF-052); its dealer’s weakness lowers a strike’s or an area attack’s (BFF-053).
summonTo bring in an ally that takes initiative on the summoner’s owner’s side, which is the summoner’s side unless it is seized (ARN-018): a fired summon seats it on the free tile beside the summoner its plan picks, a stance’s answer on the free tile beside its holder nearest the bot that set it off (SUM-001). Distinct from place, which brings in a body with no side (rubble).
summoned allyA body a summon brought in, named by its summoner on the arrival record (Bot.summoner, SUM-002): the oozes, the medic and the decoy. It draws on its summoner’s bin.
summonerThe bot whose summon brought a summoned ally in, stamped on the ally’s arrival record and published as its summoner serial (SUM-002).
self-destructOf a body: remove itself as a cost, dealing nothing of its own; the effect is the mod’s. A player bot removed this way is downed through the one downing path, to recovering, with no stance answer and no rival credited (Sacrifice, SDS-001).
plantedThe status of a bot whose own last turn closed on the tile it opened on, a turn a stun took included, until anything moves it, a ride on a bed included; a body that has just arrived is not planted until its first turn closes (PLT-001). It is no buff: no stack, no clock, nothing strips it (PLT-002). Bot.planted, the snapshot’s planted.
temporary staminaStamina above a bot’s max that damage takes first, no heal restores and the battle’s end clears (TMP-001 to TMP-004). It lives on the stamina record (NumericStat.temporary) and is no buff.
next-turn formA cover a body raises over itself.
concealedHolding a cloak (CONCEALED_BUFF_TYPES): left out of rivals’ views until the cloak runs out or damage its holder deals or takes spends it (ARN-006, ARN-013, BFF-044).
eye-lightsHow the stage draws a rival standing on a dark tile: two lights in place of its whole token, green for a pest’s (docs/design/circuit-terrain.md § The dark).
circuit featureOne of the ten things circuit terrain adds to a battle’s board: the flatbed, slick, the dark, the switch, the patrol, nest, duct, barrage, turret and relay.
round clockThe changes the arena makes at each round’s opening, before the first turn: barrages land, the round triggers due play, nests print, barrages paint.
creditWho the round clock’s damage counts for: the bot whose forced move or root left the body there, when the body had no turn between that and the landing; otherwise no bot.
scheduleThe rounds a round trigger, nest or barrage falls due at: every n rounds from a first, or a list (Schedule).
board regionA named set of a battle’s cells, lit or dark, which board triggers light and darken by its name; board regions may overlap (BoardRegion, a battle’s regions: entry). Distinct from a region, one of the circuit’s home regions.
board triggerOne entry of a battle’s triggers:: when its source happens (a round its schedule falls due at, a door opening or closing, a machine firing), the arena plays its effect on the board region, door or machine it names (BoardTrigger). Distinct from a stance’s trigger and a story scene’s trigger.
routeOne entry of a battle’s routes:: a name and two or more stops, each joined to the next by a straight run along a row, a column or a diagonal; a route whose last stop is its first is a loop (Route, docs/design/circuit-terrain.md § Patrols).
stopOne cell of a route’s stops, where one straight run ends and the next begins.
patrolA placement’s patrol:, naming the route its bot walks: its own moves keep to the route’s cells, and the next stop it heads for is one of its points of interest (docs/design/circuit-terrain.md § Patrols).
light traitsWhat a bot file’s light: declares about a body and light: shy, burn and exposed (LightTraits, docs/design/circuit-terrain.md § Light traits).
shyA light trait: the body’s own moves never enter a lit tile.
burnA light trait: the stamina a body loses past every guard and buff each time light reaches its tile, writing LIGHT_BURNED.
exposedA light trait: the counts of weakness and vulnerable a body counts in every blow while it stands lit, published under its exposed and never held as buffs.
lostOf a clashing bot on the player’s side: no positive point stands, and it has nothing to strike or head for, or nothing left but a win trigger to play; its pass starts an ask, writing AWAITING_POINT once (LGT-012). An idle bot is never lost.
round triggerA board trigger whose source is round, which plays in the round clock’s machine phase each round its schedule falls due.
switchA machine on one bare floor tile with no effect of its own, whose fire plays the board triggers whose source it is (Switch, kind: switch). Distinct from a switched machine: a switch’s operation is fired.
flatbedA belt with a bed: floor tiles that shuttle along a pit track, carrying what stands on them.
bedThe floor tiles a flatbed shuttles along its track.
trackThe tiles a bed can cover; each one it does not stand on is pit.
rideA body’s move on a bed as it moves: not a forced move, so no forced-move refusal, collision or slide applies.
slickTerrain that keeps a body sliding until it stands off it. Oil has no direction; a slope has a downhill one.
knock slideThe slide a hit that takes stamina starts on slick.
skidA slide a bot’s own step starts on slick, which stops short of thorns, a pit or flow.
dark tileA tile every board region covering it holds dark, at least one covering it: a body there is seen only from beside it and no glitch is aimed at it (BotGrid.dark_cells).
nestA mindless rival body that prints pests on its schedule, up to its cap.
pestThe 1-stamina body a nest prints, which bites harder from a dark tile.
ductA machine joining two or three grates.
grateA duct’s floor tile: a wall to walking, and a way into the duct for a forced move.
outletThe grate a duct lets bodies out of.
tripA body’s passage through a duct, from the grate it was forced into to the outlet.
relayA machine joining two pads: a move that enters one pad while both are empty ends on the other (kind: relay). Distinct from a duct, which takes only forced moves, walls walks and lets bodies out by its outlet.
padOne of a relay’s two floor cells. Distinct from a grate, a duct’s cell.
sigilThe digit a relay’s pads draw, naming the pair on the board and the level card.
heldOf a relay: a body stands on either pad, so its empty pad is a wall to the bot’s own moves and stops a forced move as rock does (PAD-002, PAD-004). Distinct from a hold, which stops the step, and from a held stance, a bot’s mode.
openOf a relay: both pads are empty, so a move into either ends on the other (PAD-002).
barrageA battle’s timed hit from nobody: a reticle at one round’s opening, landing at the next.
reticleThe tiles a painted barrage will land on.
spotterThe bot a barrage paints only while it stands.
craterThe difficult ground a barrage’s center leaves.
coverTerrain a body stands inside: it blocks sight, and a body in it is seen and targeted only from beside it, caught by no hostile area and aimed at by no glitch (CVR-001 to CVR-005).
turretA machine that blocks as rock and holds fuel, fired by a bot beside it.
burstOne unit of a turret’s fuel, spent by one torch.
torchThe arena basic that fires a turret from beside it, away from the firer.
coneThe tiles a torch’s flame covers: 1, 3 and 5 wide.
fired machineA machine Hotwire’s fire sets off for one instant effect each time: a belt with no bed, a turret, a capacitor machine, a lodestone, a nanite barrel, a switch (Machine.operation fired). Distinct from a switched machine.
switched machineA machine Hotwire’s fire flips into a state that stands until it fires again: a shutter, a flatbed, a three-grate duct (Machine.operation switched).
capacitorOne cell of a capacitor machine, holding the capacitor obstacle. Distinct from Capacitor, the framework of the store builds (asset-pipeline.md).
capacitor machineTwo or more capacitors listed first to last, which shock every body on the arc route between them when fired.
conductorA cell an arc may hop to: a capacitor, a flow cell, or a cell holding a body outside cover.
hopOne link of an arc: two conductors at most two cells apart with clear sight of each other. Distinct from a step, a stage term.
arc lengthA hop’s cost: 2 a straight step, 3 a diagonal step, plus 1 for a hop two cells long.
arc routeEvery chain of hops from a capacitor machine’s first cell to its last with the least total arc length; the bodies on it take the shock.
lodestoneA machine set facing one way that pulls the bodies in its lane against itself when fired. Distinct from the
🧲 Magnet
Power Yellow

Targeting a tile in sight, pulls everything within 2 tiles.

mod.
laneThe reach cells in front of a lodestone. Distinct from a dash’s lanes.
nanite barrelA machine on one floor cell that heals the eight cells around it once when fired, then leaves floor. Distinct from the patch mod.