# Glossary

Terms used in Bot Builder, the Pilot API, and battle replays. [Wiki home](index.md) · [Getting started](getting-started.md)

## Simulation and replays

### Tick

One fixed step of simulated time. Each living scripted bot gets a turn to read the arena and queue commands. Use `battleState()['tickDuration']` to convert between ticks and seconds. [Pilot API and tick order](pilot-api.md#coordinates-and-tick-order)

### Snapshot

The observations the pilot receives for its current tick, after the engine has advanced recovery, cooldowns, and status effects. A queued action leaves those observations as they were. A build snapshot is a different use of the term, meaning the captured loadout and code used for a match or a registration. [Architecture](architecture.md#simulation)

### Replay frame

A timestamped sample of match state, such as bot position, heading, mount angle, and resources. The recorder samples state at intervals and important changes. The browser can interpolate between frames, so advancing a displayed frame need not advance one simulation tick. [Recording and playback](architecture.md#recording-and-playback)

### Decision trace

The private Builder Practice record of the authored pilot's observations, commands, results, and optional `debug()` samples. Use it to find the tick where a choice or error first changed the bot's behavior. [Testing](testing.md#inspect-the-decision-trace)

### Seed

The input to the match's deterministic randomness. Reuse the seed, exact builds, roster order, options, and simulation version to compare results. Change one input at a time, then test additional seeds. [Testing](testing.md#compare-two-builds)

### Sudden death

The phase after regular battle time ends. Remaining bots lose hull at scheduled intervals through shields and armor. Repair pauses and hull pickups expire. Builder Practice has its own deadline. [Architecture](architecture.md#simulation)

## Aiming, firing, and movement

### Effective range

The distance beyond which an aimed weapon gains extra angular spread. Close shots still have base spread, and shots beyond effective range can hit. `mountState($slot)['effectiveRange']` includes the bot's targeting equipment. An enemy jammer can reduce the effective range for a particular aim point at launch. [Equipment](equipment.md#directional-weapons)

### Maximum range

The farthest legal ground aim point from the bot's center for a directional weapon. An aim point can be within this limit and still be difficult to hit. For a self-centered firing component, `weaponRange()` gives its effect radius. [Pilot API](pilot-api.md#estimate-before-committing)

### Aim point

A fixed pair of world coordinates, X and Z, given to a directional weapon. The turret follows those coordinates until its order finishes, is replaced, or is cancelled. Update the point as your target moves. [Combat strategy](combat-strategy.md#track-before-you-fire)

### Command queue

Actions requested by the pilot for this tick. A command returning `true` confirms acceptance into the queue. Check `actionResults()` on the next tick for the outcome. Movement commands normally need to be queued again each tick. [Pilot API](pilot-api.md#send-commands-and-verify-their-results)

### Aim order

An `aim()` request aligns a turret toward a ground point without shooting. It can work during cooldown. Use it to track, or replace an older pending fire request with a new aim-only order. [Pilot API](pilot-api.md#send-commands-and-verify-their-results)

### Fire order

A `fire()` request asks a mount to shoot. A turret can stay pending while turning toward the requested point. A ready fixed missile launcher can fire on the same tick. Self-centered effects use the slot alone. [Pilot API](pilot-api.md#send-commands-and-verify-their-results)

### Launch

The instant a shot actually fires. Resources are spent and the cooldown begins. A `fired` action result or `shotLaunched` event confirms a launch. [Combat strategy](combat-strategy.md#track-before-you-fire)

### Hit

A shot's contact or effect on an eligible bot. In the pilot's `shotResolved` feedback, `hit` means a visible impact was reported. Damage to hull, damage to shield charge, stun, and knockback are separate results. [Testing](testing.md#inspect-the-decision-trace)

### Lead and intercept

An aim point ahead of a moving contact's current position. `estimateIntercept()` uses observed velocity and nominal aiming and travel time to estimate that point. Use fresh observations when the target changes direction. [Combat strategy](combat-strategy.md#track-before-you-fire)

### Heading and bearing

Heading is the direction the chassis faces in world coordinates. A scan contact's bearing is the angle to that contact relative to your current heading. Both use radians. [Pilot API](pilot-api.md#coordinates-and-tick-order)

### Chassis collision

Physical contact between living bots that blocks further movement into the other body. Allies and enemies can block a route. If `actionResults()['move']` reports `blockedByBot`, choose a route around the obstruction. [Combat strategy](combat-strategy.md#move-recover-and-stay-in-the-fight)

## Equipment and resources

### Chassis and loadout

The chassis is the bot's frame, selected within a weight class. The loadout is the ordered set of components fitted to its mounts. The chassis affects resources and movement, and the weight class determines mount count. [Equipment](equipment.md#chassis-and-mounts)

### Mount slot

The location for a component. Slot `0` in PHP is the first mount in Builder. It must contain a weapon that deals damage. A pilot can inspect an installed component and its current state with `mountState($slot)`. [Equipment](equipment.md#chassis-and-mounts)

### Cooldown and readiness

Cooldown is a mount's recovery time after firing. Readiness also depends on status and current resources. A turret can be ready and still need time to align. [Pilot API](pilot-api.md#estimate-before-committing)

### Hull

The bot's remaining structural health. A bot is destroyed when its hull reaches zero. Hull normally recovers only through repair or pickups. [Equipment](equipment.md#toggles-and-passive-gear)

### Shield charge

A reserve supplied by a fitted Shield Generator. Existing charge absorbs part of incoming weapon damage even when the recharge toggle is off. Recharge spends energy to restore missing charge. [Equipment](equipment.md#toggles-and-passive-gear)

### Armor

The reduction applied to damage that reaches hull after available shield charge absorbs its share. Sudden-death attrition bypasses both defenses. [Equipment](equipment.md#toggles-and-passive-gear)

### Energy

A resource that regenerates over time and pays for energy weapons, activations, and equipment upkeep. Damage described as energy damage is a damage type, separate from a bot's energy reserve. [Equipment](equipment.md#budget-the-whole-build)

### Ammo

A resource spent by ammunition weapons and hull repair. There is no natural reload of the ammo reserve. A cooled-down weapon still needs enough ammo to fire. [Equipment](equipment.md#budget-the-whole-build)

### Toggle and passive equipment

Toggle equipment accepts `toggle($slot, $on)` and may spend resources while enabled. An enabled component can be temporarily suppressed. A passive part applies its effect from its fitted mount without a pilot command. [Equipment](equipment.md#toggles-and-passive-gear)

### Pickup

A temporary arena item that restores one resource to the living bot that collects it. Collection requires proximity. Compare the remaining lifetime with time to reach it, and leave space for a teammate who needs it more. [Combat strategy](combat-strategy.md#move-recover-and-stay-in-the-fight)

### EMP and stun

EMP is a control effect that can stun a bot. While stunned, the bot loses movement, aim, firing, and active equipment and stops progressing weapon cooldowns. Its natural energy regeneration and existing shield charge still work. [Equipment](equipment.md#self-centered-weapons-and-control)

### Cloak

A toggled effect that removes the bot from enemy scans while active. Teammates can still see it. Shots aimed at coordinates and area effects can still hit it. [Equipment](equipment.md#toggles-and-passive-gear)

## Building, saving, and battle modes

### Unsaved edits

Changes to the loadout or PHP currently in Bot Builder. Compile and Builder Test Run use the current editor values. Save to keep a changed build as a checkpoint. [Testing](testing.md#builder-practice)

### Checkpoint

A saved build snapshot in a human bot's version history. The checkpoint includes the chassis, mount order, and PHP. Restore activates an existing leaf, Duplicate creates a sibling copy of a checkpoint that has descendants, and Roll back deletes descendants after confirmation. [Testing](testing.md#save-and-publish-deliberately)

### Current build

The saved version active for the owner. On a checkpointed bot it is the active checkpoint. The current and published builds can point to different versions. [Testing](testing.md#save-and-publish-deliberately)

### Published build

The version available to other players for public battles. You can save or restore a different current build while leaving the published version in place. Public battles expose the published loadout. Sharing its PHP requires a separate opt-in. [Testing](testing.md#save-and-publish-deliberately)

### Builder Practice

A short private test of the current build in the editor, also called Test Run. Use the resulting decision trace to inspect the authored pilot. [Testing](testing.md#builder-practice)

### Practice battles

Configurable matches using saved bots and training presets. Choose teams, seats, a seed, and arena rules in **Arena → Practice battles**. The recording is saved in the initiating player's Hangar. [Architecture](architecture.md#from-an-editor-draft-to-a-match)

### Leaderboard battle

A ranked match between one published bot you own and eligible published opponents selected by the server. Its placements contribute to leaderboard points. [Architecture](architecture.md#from-an-editor-draft-to-a-match)

### Tournament registration

An entry that preserves a snapshot of the registered build. The tournament uses that entry when it runs its bracket fights. Later changes to the saved bot leave the entry's snapshot intact. [Architecture](architecture.md#from-an-editor-draft-to-a-match)

### Training bot

A built-in opponent or teammate whose loadout and PHP can be inspected. Use one as a repeatable benchmark for a tactic. [Testing](testing.md#compare-two-builds)

## PHP and the Pilot API

### Pilot and Pilot API

The pilot is the bot's PHP program. The engine injects `$pilot`, which exposes the allowed observations, commands, forecasts, and team features. [Pilot API](pilot-api.md) · [PHP reference](php-reference.md)

### Scan contact

An ally or enemy reported by `scan()`, with its match-local ID, coordinates, distance, bearing, and observed velocity when available. Destroyed bots and cloaked enemies drop out of the scan. [Pilot API](pilot-api.md#read-the-arena)

### Forecast

An estimate made from the current observation, such as drive time, shot alignment, or a possible allied hit. The result depends on the method's assumptions. Targets and firing lanes can change before the action resolves. [Pilot API](pilot-api.md#estimate-before-committing)

### Compile

Check that the source parses and obeys the restricted PHP syntax and method allowlist. A successful compile leaves gameplay decisions and runtime behavior to practice. [PHP syntax](php-syntax.md#budgets-and-errors)

### Runtime error

An error that occurs while a compiled pilot executes. An unexpected `null` or exhausted work allowance can stop a practice run even though the same source compiled. Inspect the trace at the failing tick. [Troubleshooting](troubleshooting.md)

### Work budget

The interpreter's limit on how much work a pilot can perform. It limits each tick and also bounds script work across a match. Use bounded loops and inspect `workRemaining()` in demanding logic. [PHP syntax](php-syntax.md#budgets-and-errors)

### Helper function

A named function defined at the top level of a pilot script. Use it to factor a repeated decision into a small routine. Its parameters and return value need declared types. [PHP syntax](php-syntax.md#helpers-and-local-state)

### Array and null

Arrays hold ordered items or keyed fields, such as a list of contacts or a contact's coordinates. `null` can mark an absent observation or unavailable forecast. Check an optional value before reading its fields or doing arithmetic. [PHP syntax](php-syntax.md#what-you-can-write)

### Match memory

Small private values retained across this bot's ticks via `remember()` and `recall()`. Ordinary variables are local to the current tick or helper call. [Pilot API](pilot-api.md#coordinate-and-retain-small-amounts-of-state)

## Teams and coordination

### Team, seat, and participant ID

A team groups allies. A seat is a stable roster position on that team, and a participant ID identifies one bot in that match. Use IDs to connect scan contacts with `teamState()` entries. IDs and seats are match-local. [Team strategy](team-strategy.md#assign-roles-and-make-room)

### Friendly fire

The battle rule that lets weapon and control effects affect allies. When enabled, missile splash can also affect its own launcher. Living bots can block movement under either setting. [Team strategy](team-strategy.md#coordinate-pickups-and-fire)

### Signal and team message

A signal is a simple coordinate ping, such as `help`. A team message carries a structured payload under a topic and can be sent to one living teammate or broadcast. Delivery is on the next tick. [Team strategy](team-strategy.md#share-what-changes-a-decision)

### Shared team data and TTL

Shared team data is a small keyed value published by a participant for teammates to read. TTL, or time to live, is the lifetime in ticks for shared data, messages, and objective claims. Check freshness before relying on a previous intent. [Team strategy](team-strategy.md#share-what-changes-a-decision)

### Objective claim

An advisory team assignment for a visible pickup, registered by its ID. The claim tells allies who plans to collect it. Normal arena proximity rules still decide who collects it. [Team strategy](team-strategy.md#coordinate-pickups-and-fire)
