X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=tictactoe.txt;h=b79f72c6310905914ef31ae64c38426e3ac392a4;hb=31b880df4acd1ace11d1ab8cb1ca83647ac13ef1;hp=62046a6e23822d5d72f907c95adfb9f2c6c39826;hpb=16c1fd9d8043ba1970080bfd19929d304b522eec;p=empires-api 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