- Simple Turn Based Dice Game.
- Dice Outcomes range from 1 to 6.
- 4 Player game.
- Winning Criteria : Total Sum of the dice outcomes for a player reach 61 or greater.
- 30 Sec Turn or Auto Play
use dice-game
db.games.createIndex( { "_id": 1 } )
db.users.createIndex( { "email": 1 , "mobile":1}, { unique: true})
db.dice_rolling_locks.createIndex( { "game_id": 1, "user_id":1 }, { unique: true, expireAfterSeconds: 5 } )
git clone https://github.com/krdganesh/dice-game-api.git
cd dice-game-api/src
npm install
npm run start
npm run dev
https://www.getpostman.com/collections/657b6b6f08900fbafc5c