Skip to content

Instantly share code, notes, and snippets.

@kalinchernev
Created June 9, 2016 14:18
Show Gist options
  • Save kalinchernev/d2d3e5e9ade9bca4f8ae94bc58dd5e88 to your computer and use it in GitHub Desktop.
Save kalinchernev/d2d3e5e9ade9bca4f8ae94bc58dd5e88 to your computer and use it in GitHub Desktop.
Sample state object taken from this repository https://github.com/TakeEatEasy/hack-league just cleaned up.
{
"state": {
"couriers": [
{
"id": 1,
"position": {
"x": 1,
"y": 3
},
"name": "name",
"score": 0,
"fighter": false,
"electric": false
}
...
],
"orders": [
{
"from": {
"x": 22,
"y": 11
},
"to": {
"x": 28,
"y": 1
},
"id": 27,
"status": 0,
"idCourier": 0,
"value": 18
},
...
],
"turn": 223
},
"possibleActions": [
{
"action": "MOVE_DOWN",
"idCourier": 1,
"turn": 223
},
{
"action": "MOVE_UP",
"idCourier": 1,
"turn": 223
}
],
"idCourier": 1,
"score": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment