forked from Dkendal/battle_snake
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dylan Kendal
committed
Aug 3, 2016
1 parent
3a6562d
commit a29ef32
Showing
4 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "{\"turn\":0,\"snakes\":[{\"url\":\"localhost:4000\",\"name\":\"Snek\",\"coords\":[[0,0]]}],\"food\":[],\"board\":[[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}],[{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"},{\"state\":\"empty\"}]]}", | ||
"headers": { | ||
"content-type": "application/json" | ||
}, | ||
"method": "post", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://localhost:4000/move" | ||
}, | ||
"response": { | ||
"body": "{\"taunt\":\"down\",\"move\":\"down\"}", | ||
"headers": { | ||
"server": "Cowboy", | ||
"date": "Wed, 03 Aug 2016 02:29:11 GMT", | ||
"content-length": "30", | ||
"content-type": "application/json; charset=utf-8", | ||
"cache-control": "max-age=0, private, must-revalidate", | ||
"x-request-id": "flkustkkula3vt4mfv4d15oinfisch02" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
defmodule BattleSnake.Move do | ||
defstruct [:move, :taunt] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters