Skip to content

Instantly share code, notes, and snippets.

@rotemtam
Created August 23, 2015 19:14
Show Gist options
  • Select an option

  • Save rotemtam/a3119a7552450a9d52be to your computer and use it in GitHub Desktop.

Select an option

Save rotemtam/a3119a7552450a9d52be to your computer and use it in GitHub Desktop.
// 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