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
13
pieces of information :
botId,
botType,
health,
shield,
action,
targets
,
enemyRange,
borderDist
,
distEnRank,
borderDistRank,
shieldRank,
healthRank,
totalRank
.
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).
enemyRange : the range from the closest enemy. If the bot is from the enemy team, it
returns the range to its closest ally.
borderDist : the range from the closest border (among the left, right, top and bottom
one).
The next values are
ranks: bots are sorted per an attribute in
ascending
order :
-
distEnRank : the attribute is the exact distance between the bot and the closest
enemy. If the bot is from the enemy team, the distance is the distance to its closest ally.
-
borderDistRank : the attribute is the exact distance between the bot and the
closest border.
-
shieldRank : the attribute is the exact shield value.
-
healthRank : the attribute is the exact health value
-
totalRank : the attribute is the sum of exact health and shield
Then all of your bots become one after the other
ON AIR. An
ON
AIR bot gives for each bot
7
information from
its perspective : botId,
botType,
range,
distMeRank
,
shieldComp,
healthComp,
totComp
.
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.
shieldComp,
healthComp,
totComp
compare an attribute between the
ON AIR bot and the other bot.
shieldComp compare the
shields of the 2 bots,
healthComp compare the healths of the 2 bots,
totComp compare the sum of healths and shields of the 2 bots.
The comps can be either :
-
-1
if the other bot has more attribute than the ON AIR bot
-
0
if the other bot has the same value for the attribute than the ON AIR bot
-
1
if the other bot has less attribute than the ON AIR bot