This is a demo project for presenting advanced features of boardgame.io including:
- Turn Order = ANY
- Secret State
- Multiple Players
The game features classic game play of rock paper scissors which both players take action in same web page.
The original demo of boardgame.io features game play in turn base.
To simulate the real live game play of rock paper scissors, Turn Order = ANY is used so that both players can select actions (rock paper scissors) at any time without waiting another player finishing the move.
Also, the game uses "Secret State" to hide the action of another players before end game.
To review the game and the code, you may directly click the button below.
$ git clone https://github.com/consultchwong/rock-paper-scissors-demo/
$ cd rock-paper-scissors-demo
$ npm install
$ npm start