First line: an integer
allyBotAlive, the amount of your
bots which are still alive.
Next line: an integer
botCount, the amount of alive
bots in the arena.
For each bot on the battlefield, your bots give
6
pieces of information :
botId,
botType,
health,
shield,
action,
targets
.
The others are just 0 and will be used in the next leagues.
Ranges are given as integer as follows :
0
for
SHORT RANGE
,
1
for
MEDIUM RANGE
,
2
for
LONG RANGE
and
3
for
OUT OF RANGE.
botId is the unique bot id, stay the same for the whole game.
botType indicates the type of bot. The value can be :
-
"ALLY"
for one of your bots
-
"ENEMY"
for an enemy bot
health,
shield for the approximate bot's health and shield.
action indicates the action executed by the bot last turn. The value can be
"ATTACK"
,
"MOVE"
,
"FLEE"
,
"IDLE".
targets is the list of the targets ids targeted by the bot last turn. They are separated with
",":
"id1,id2,id3..."
(the target for IDLE is the bot itself).
Then all of your bots become one after the other
ON AIR. An
ON
AIR bot gives for each bot
4
information from
its perspective : botId,
botType,
range,
distMeRank
.
The others are just 0 and will be used in the next leagues.
For the first iteration, it sends its own information so
botType is
"ON_AIR"
so that you can get the ON AIR ally bot id. Then it sends information about
other
allies, then enemies.
botId is the unique bot id.
botType
indicates the type of bot. The value can be:
-
"ALLY"
for one of your bots
-
"ENEMY"
for an enemy bot
-
"ON_AIR"
for the ON AIR bot
range for the range at which the bot is from your
ON AIR bot.
distMeRank the rank of the bot in a ranking based on the exact distance between the
bots and the
ON AIR bot.