In Robot Game, you write programs to control robots that fight for you. The game is played on a 19x19 grid. The goal is to end up with more bots left than your opponent after 100 turns.
Dark squares represent where you can't walk. As you can see, this effectively creates a circle arena where your robots fight.
The green squares represent spawn points. Every 10 turns, a batch of 5 robots will spawn at random spawn points for each player, and any robot still standing on a spawn point will die.
Each robot starts out with 50 HP.
Robots can generally act (move, attack, etc.) on the squares one above, left, right, and below it—its adjacent squares.
Each turn, every robot can take one action:
There is no friendly damage in this game. Collisions, attacks, and suicides will only damage the opponent.
Whoever has more robots left after 100 turns wins.
Your get to code the AI for a single robot. All your robots will use this AI. To win, your robots must work together with other copies of themselves—to surround an enemy robot, for example.