Good morning all!
I was working on a starter bot this morning and the engine gave me something I didn’t expect. After a worm was killed, it was removed from the map, but it still appeared in the player’s and opponent’s list of worms, with negative health.
Is this a bug, or do bots need to take into account that not all worms in their list may be alive?
"myPlayer": {
"id": 1,
"score": 2090,
"health": 300,
"worms": [
{
"id": 1,
"health": 150,
"position": {
"x": 23,
"y": 30
},
"weapon": {
"damage": 8,
"range": 4
},
"diggingRange": 1,
"movementRange": 1
},
{
"id": 2,
"health": -2,
"position": {
"x": 7,
"y": 10
},
"weapon": {
"damage": 8,
"range": 4
},
"diggingRange": 1,
"movementRange": 1
},
{
"id": 3,
"health": 150,
"position": {
"x": 12,
"y": 3
},
"weapon": {
"damage": 8,
"range": 4
},
"diggingRange": 1,
"movementRange": 1
}
]
}