provide "hazard sides" in the json payload #159
fables-tales
started this conversation in
Feature Requests
Replies: 1 comment
-
I'm all for this existing 👍 but it'll be a low priority on our end given that it can be calculated relatively easy/cheaply. For anyone interested in how this is tracked in the game engine, the relevant code is available here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, in the JSON payload for move requests, hazards are represented as an array of cells. This makes determining how far in the hazards have spawned from each side is difficult. The reason why I need this is that in order to simulate hazards coming in from the side more easily, I'd like to be able to easily determine the state on the battlesnake engine side, as opposed I suggest, along with the actual locations of hazards, providing a
hazard_sides
object which is like:this would tell us how far in from each side hazards have been added, representing something like this:
Beta Was this translation helpful? Give feedback.
All reactions