summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a695e5c)
This gives a snapshot of the current state as well as the history of
all moves up until now. This event will be served to a client when
joining a game in progress.
The following event types will be returned by the server:
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
TYPE: move
WHEN: When a client (maybe yourself) issues a legal move