diff options
| author | Loic Guegan <manzerberdes@gmx.com> | 2019-05-09 18:38:31 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerberdes@gmx.com> | 2019-05-09 18:38:31 +0200 |
| commit | d261883d4148a87ea8f6bb6cef16be406a2c0a10 (patch) | |
| tree | c10fa38dbe394e3f4fc6269c0ba6cdfa7eed758e /doc/api.org | |
| parent | f0ccb136eb945b19d3d9eec61ad8a15a0a9ba993 (diff) | |
Update api
Diffstat (limited to 'doc/api.org')
| -rw-r--r-- | doc/api.org | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api.org b/doc/api.org index cd7dec3..25eb9a0 100644 --- a/doc/api.org +++ b/doc/api.org @@ -22,8 +22,8 @@ "syn": 1, "game-id": 1, "game-over": false, - "snake": [(1,2),(1,3)], - "food": [(6,7)] + "snake": [[1,2],[1,3]], + "food": [[6,7]] } #+END_SRC Note that, syn entry is used to keep packet ordering consistent and detecting packet inversion on the network. Thus, @@ -46,8 +46,8 @@ "syn": 2, "game-id": 1, "game-over": false, - "snake": [(0,2),(1,2)], - "food": [(6,7)] + "snake": [[0,2],[1,2]], + "food": [[6,7]] } #+END_SRC *** Refresh Screen @@ -67,8 +67,8 @@ "syn": 3, "game-id": 1, "game-over": false, - "snake": [(1,2),(0,2)], - "food": [(6,7)] + "snake": [[1,2],[0,2]], + "food": [[6,7]] } #+END_SRC *** End Game @@ -79,8 +79,8 @@ "syn": null, "game-id": 1, "game-over": true, - "snake": [(0,2),(1,2)], - "food": [(6,7)] + "snake": [[0,2],[1,2]], + "food": [[6,7]] } #+END_SRC - No reply is expected from the client and server will be in charge to free local memory. Note that syn=null. |
