Poeschl / RoboRush

A game about multiple robots trying to get from A to B on an map with quadratic tiles.
https://roborush.poeschl.xyz
Apache License 2.0
2 stars 0 forks source link

API Robot: maxFuel value always equal fuel value #223

Open robb83 opened 1 month ago

robb83 commented 1 month ago

If I understand the API correctly, maxFuel should always represent the total size of the fuel tank, after I take a step, the value of maxFuel is the same as the value of fuel.

Initial response:

{
  "id": 26,
  "name": "robb83",
  "color": {
    "r": 210,
    "g": 182,
    "b": 96
  },
  "fuel": 20,
  "position": {
    "x": 5,
    "y": 9
  },
  "nextAction": null,
  "lastResult": {
    "tiles": [
     ...
    ]
  },
  "maxFuel": 20
}

After Move:

{
  "id": 26,
  "name": "robb83",
  "color": {
    "r": 210,
    "g": 182,
    "b": 96
  },
  "fuel": 19,
  "position": {
    "x": 6,
    "y": 9
  },
  "nextAction": null,
  "lastResult": {
    "tiles": [
      ...
    ]
  },
  "maxFuel": 19
}
Poeschl commented 1 month ago

Good catch :)