Zombie Worms?

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
      }
    ]
  }
1 Like

Hi Justin

This is not a bug. Dead worms are removed from the map and is not considered when determining the active worm but will still show in the rendered worms lists.

1 Like

:+1: Thanks for the clarification Renette

This topic was automatically closed after 3 days. New replies are no longer allowed.