Skip to content

Instantly share code, notes, and snippets.

@nikolaswise
Created April 15, 2016 19:39
Show Gist options
  • Save nikolaswise/52c2589692ad360d1d42395e2981fda8 to your computer and use it in GitHub Desktop.
Save nikolaswise/52c2589692ad360d1d42395e2981fda8 to your computer and use it in GitHub Desktop.
joseki party game server json
joseki-party: {
// name in url, generated on new game
ironrabbit-fancier: {
// Gets set when one player passes their turn. Reflects in the UI.
// Two passes end the game
pass: {
black: false,
white: false
}
// If a player resigns, this gets marked
resign: {
black: false,
white: false
}
black: foo, // unique player id stored on localstored
white: bar, // unique player id stored on localstored
size: 13, // board size, defined on start
komi: 0.5, // komi, used for scoring
turn: black // Which player is next?
last: [4,4] // Which stone was most reently played?
goban: Game // weiqi npm module tracks hame
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment