The Game
$ npm install
$ npm start
$ npm test
$ npm run all
You need three process. 1 as server. And other 2 as clients.
$ npm start
$ npm run client
- CLI based game. CLI will guide you what to do when.
- Both users need to register
- The first user will select the game and hence create a room
- there is by default one game, named
guess. You are free to create more games, similar withGuessclass methods. If created those games will also be listed. - Number of default players configurable from config.
- The first user's client will wait untill other players join
- when all join, server will notify all users that question will be asked in 5 seconds
- Question will be to pick a number from 1 to 26.
- Whoever the first user guess the right number wins
- user have unlimited number of tries. If user does not guess right number, his score will be minus by absolute diff.
- Upon timeout 15 seconds, Otherwise the user who has the highest score will win.
MIT © Ramesh Kumar