JZ Flash Cards is a web-based mathematics game that lets you play multiplication flash cards against other opponents online in real time.
- Start a new game here: https://jz-multiplication.herokuapp.com/multiplication.html.
- Enter your name and hit "join".
- Click "Invite More Players" to generate a link to invite others to your game.
- Click "Start Next Round" once everyone has joined.
There are two primary components to this project:
- A NodeJS server that holds a game's state and broadcasts state changes.
- A browser-based interface that renders the state and sends updates as users play the game.
The game's state includes things like which players have joined the game, the current score, and which flash cards are 'live' for the current round.
Websocket connections are leveraged to quickly communicate state changes between the players and the NodeJs server.
npm install
npm run start
## Game can now be loaded at http://localhost:3001/multiplication.html