X-Git-Url: https://git.cworth.org/git?p=empires-api;a=blobdiff_plain;f=tictactoe.txt;h=b79f72c6310905914ef31ae64c38426e3ac392a4;hp=62046a6e23822d5d72f907c95adfb9f2c6c39826;hb=31b880df4acd1ace11d1ab8cb1ca83647ac13ef1;hpb=a695e5c5ae3a972c057e7cecc578963d5e662fee diff --git a/tictactoe.txt b/tictactoe.txt index 62046a6..b79f72c 100644 --- a/tictactoe.txt +++ b/tictactoe.txt @@ -26,6 +26,15 @@ For a specific game the following API endpoints are defined. The following event types will be returned by the server: + TYPE: game-state + + WHEN: When a client first connections + + EXAMPLE: + + event: game-state + data: {"moves":[0,8],"board":["X","","","","","","","","O"],"next_player":"X"} + TYPE: move WHEN: When a client (maybe yourself) issues a legal move