Halite II
VisualizerDemo matchBot editorGame rules
HomeDemoEditorRules

Python bot editor

This is the example bot from the Python starter pack. Edit it here — your changes are saved in your browser.

Bots run locally, not in the browser. When you're done editing, download the file and run it with the engine on your machine.

  1. Download the engine from the releases page and the starter pack (your bot needs its hlt/ helper module).
  2. Save this file as MyBot.py next to hlt/.
  3. Run halite2 "python3 MyBot.py" "python3 MyBot.py"
  4. Drop the resulting replay.hlt on the visualizer — or check the game rules first.