Skip to content

Instantly share code, notes, and snippets.

@jhcheung
Created June 15, 2020 02:08
Show Gist options
  • Save jhcheung/148d8435f50b492dd82995157b5f6215 to your computer and use it in GitHub Desktop.
Save jhcheung/148d8435f50b492dd82995157b5f6215 to your computer and use it in GitHub Desktop.
phase boardgame.io
const game = {
setup: ctx => ({ deck: 6, hand: Array(ctx.numPlayers).fill(0) }),
turn: { moveLimit: 1 },
phases: {
draw: {
moves: { DrawCard },
},
play: {
moves: { PlayCard },
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment