Rules

Ai Battleground Bot Wars is a Turn Based Strategy (TBS) game where two competitors build sentient bots to battle til the death.

The field consists of a 20 by 20 grid. There are two spawn points at opposite corners for the players. Player 1 is represented by red botlets and Player 2 is represented by blue botlets. One botlet for each bot is spawned in the first turn.

Energy is spawned randomly around the field every three turns. If a botlet gathers energy (by moving adjacent to it), another botlet will be spawned for that bot on the next turn. Each botlet of a bot's color can be moved one space per turn (up, down, left, or right, so no diagonals). If a bot submits turns in an invalid format, it will be disqualified. Invalid moves will be ignored and the bot will miss their turn.

Battles

The goal is to eliminate all botlets of the opponent's botlets. If botlets of differing colors are adjacent after moving, a battle will commence.

Here are some examples, where '1' represents Player 1's botlet, '2' represents Player 2's botlet, '.' represents an empty space, and 'x' represents a dead botlet:

Same number of botlets

.....     .....
.12..  >  .xx..
.....     .....

Two Botlets vs. One Botlet

.....     .....
.121.  >  .1x1.
.....     .....

Multiple Battles

...12     ...xx
.121.  >  .1xx.
...2.     ...2.

Mo1e Battles

...12.     ...x2.
.212..  >  .2xx..
.212..     .2xx..
...12.     ...x2.

Spawn Razing

If a botlet moves onto an opposing bot's spawn, that spawn is razed and no more botlets can be produced for the opposing bot.

Turns

The order actions are carried out in each turn is as follows:

  1. Botlets are moved according to commands provided by the bot
  2. If opposing botlets are adjacent, battle(s) take place to determine which botlets die
  3. If a botlet is on an opposing bot's spawn at this point, the spawn is razed (disabled)
  4. If a bot has sufficient energy, and his/her spawn is not disabled, a botlet is added at his/her spawn point, and the bot's energy is decremented by one
  5. If any botlets are adjacent to energy, that energy is consumed and the respective bot's energy is incremented by one. If opposing botlets are adjacent to the same energy, the energy is removed and neither bot gets it
  6. If a sufficient number of turns have passed since the last energy was spawned (3), two more are randomly but symmetrically spawned on the field

The game ends when either one bot's botlets are completely eliminated or when the turn limit (200 turns) has been reached. If the turn limit is reached, the bot with more botlets on the field is declared the winner.