Welcome to the Pig Game! Challenge a friend and test your luck in this two-player dice game.
- Players: Two players take turns to play.
- Starting Player: Player 1 starts the game.
- Rolling the Dice: Click the ROLL button to generate a dice number.
- Gameplay: Each roll adds the dice number to the current player's score.
- Winning Condition: The first player to reach a total score of 100 or more wins.
- Roll Outcome:
- If the dice rolls a 1, the current player loses their current score, and the turn goes to the next player.
- If the roll is not a 1, the player can either continue rolling or choose to hold the current score and pass the turn to the next player.
- Hold Option: Click the HOLD button to switch to the next player and secure the current score.
- Start the game by clicking the NEW GAME button.
- Player 1 begins by rolling the dice.
- Keep rolling or choose to hold your score to pass the turn.
- Avoid rolling a 1 to prevent losing your current score.
- The first player to reach a score of 100 or more wins!
- HTML, CSS, JavaScript