Created
August 23, 2015 19:14
-
-
Save rotemtam/a3119a7552450a9d52be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // we store data about games as nodes of the /games node | |
| { | |
| "games" : { | |
| "123456" : { // Game identifiers will be 6 digit PIN codes | |
| // Gamestate, key-value pairs | |
| }, | |
| "234567" : { | |
| // ... | |
| } | |
| } | |
| } | |
| // each gamestate will be built like this: | |
| { | |
| "state" : "waitingForPlayer", // or "preQuestion", "Question", etc | |
| "players" : { | |
| 123456789 : { // player IDs will be 9 digit number | |
| "screen_name" : "johndoe123", | |
| "current_points" : 0 | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment