Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Robot: maxFuel value always equal fuel value #223

Open
robb83 opened this issue Oct 30, 2024 · 1 comment
Open

API Robot: maxFuel value always equal fuel value #223

robb83 opened this issue Oct 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@robb83
Copy link

robb83 commented Oct 30, 2024

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
Copy link
Owner

Poeschl commented Oct 31, 2024

Good catch :)

@Poeschl Poeschl added the bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants