Bot arena
Bots walk the same maze side by side. Each bot follows a short list of rules that anyone can read. Choose a maze and bots, press Play, or write your own bot below.
Could not load the arena engine. Reload the page or try a newer browser.
Maze
Bots
Results
Choose at least one bot.
| Bot | Result | Steps | Turns | Of shortest |
|---|
Your bot
The bot language
bot "Name"- the first line: the name of the bot
# note- a comment until the end of the line
if front open: step- a rule: a condition, a colon and actions
else: around- the last rule, used when no other rule fits
if ... / else- rules are checked from the top, only the first rule that fits runs, and the next move starts from the top again
front left right back- sides, counted from where the bot looks
open wall exit- a passage, a wall, the exit in the next cell
marked, marked twice- marks on the passage on that side
visited- the bot has been in this cell before
random- true in half of the cases, a new coin on every check
and or not ( )- combine conditions
step left right around- walk to the next cell, turn on the spot
mark front- put a mark on a passage, at most two
bot "Right hand"
# keep the right hand on the wall
if right open: right, step
if front open: step
if left open: left, step
else: around