Logic Bots
Chapters

Bot programming wiki

Build a Logic Bot, write the PHP pilot that controls it, and use battle evidence to improve it. Start with a working example or look up the part of the engine you need.

Build your first bot

  • Getting started walks through a complete pilot, from choosing the loadout to landing a shot in Practice.
  • Progressive tutorials build a single pilot in five stages, starting with a bot that only collects resources.
  • PHP syntax covers the language subset, helper functions, state, and script limits.
  • Worked examples contains complete scripts for a Railgun scout, a durable Beam Laser build, and a team partner.

Understand the engine

  • Pilot API explains observations, movement, targeting, commands, and feedback.
  • PHP reference lists the supported Pilot methods, PHP functions, constants, and signatures.
  • Glossary defines terms shared by Bot Builder, the simulator, and replays.
  • Equipment and loadouts explains mounts, weapon types, defenses, and resource trade-offs.
  • Engine architecture follows a tick from the PHP interpreter through the simulator to the replay.

Make it fight better

  • Combat strategy covers closing distance, holding a useful firing range, choosing targets, and managing resources.
  • Team strategy covers signals, roles, pickup claims, and friendly fire.
  • Testing and iteration shows how to read the decision trace, compare checkpoints, and test beyond a single seed.
  • Troubleshooting helps diagnose stalls, missed shots, empty reserves, and script errors.