Drive-by
Keep driving and shoot sideways.
BotWars is a programming game. You write one Python class; every tick it steers a tank, sweeps a radar, aims a turret and fires. Then you watch your bot fight other bots in a real-time arena, and replay any tick to see why it won or lost. Everything runs in your browser: no install, no account.
- Workbench: write your bot, run it against an opponent, replay every tick.
- Battleground: showdowns and round-robin tournaments, on the big screen.
- Hall of Fame: every bot's record across all your tournaments.
- Lessons: learn to write a bot, one idea at a time, with goals and hints.
A first bot
from botwars import Bot
class MyBot(Bot):
def on_tick(self, me, enemies):
self.forward(8) # drive at full speed
self.turn_radar(45) # sweep the radar
if enemies:
self.aim_at(enemies[0]) # point the turret at the first enemy seen
self.fire(2)
The full bot API, written for people and AI agents alike: /llms-full.txt.