POST /move
Example: POST https://your.battlesnake.com/move
This request will be sent for every turn of the game. Use the information provided to determine how your Battlesnake will move on that turn, either up, down, left, or right.
Parameters
Body | Type | Description |
---|---|---|
game | object | Game Object describing the game being played. |
turn | integer | Turn number for this move. |
board | object | Board Object describing the game board on this turn. |
you | object | Battlesnake Object describing your Battlesnake. |
Responses | Type |
---|---|
🟢 200 | application/json |
{
"move": "up",
"shout": "Moving up!"
}
Response Properties
Parameter | Type | Description |
---|---|---|
move | string | Your Battlesnake's move for this turn. Valid moves are up, down, left, or right.Example: "up" |
shout | string (optional) | An optional message sent to all other Battlesnakes on the next turn. Must be 256 characters or less.Example: "I am moving up!"< |