Play this game from here - https://pig-game-pp.netlify.app/
- You need 2 players to play this game. Starting player is set to player 1.
- Player 1 will roll a dice first. As many times the player 1 rolls dice, that sum will be stored in current value.
- If Player 1 holds this value, then that value will stored in total and current will again reset to 0 for player 1 and It will be turn of player 2 now.
- Player 2 will roll the dice and can hold the value.
- If before holding the value, the player gets one on dice then player will lost his turn and current value will be set to 0 as It wont be added in total.
- The Player wins the game whose total score becomes 100 first.