From d261883d4148a87ea8f6bb6cef16be406a2c0a10 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 9 May 2019 18:38:31 +0200 Subject: Update api --- doc/api.org | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/api.org') 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. -- cgit v1.2.3