This is a simple Pig dice game implemented using HTML, CSS, and JavaScript. The game involves two players taking turns rolling a dice to accumulate points. The first player to reach or exceed 100 points wins the game.
- The game starts with Player 1 rolling the dice by clicking the "ROLL" button.
- Each player accumulates points by rolling the dice. The player's current score is displayed.
- If a player rolls a 1, their current score is reset to 0, and it becomes the next player's turn.
- Players can click the "HOLD" button to add their current score to their total score.
- The first player to reach or exceed 100 points wins the game.
- Clicking the "NEW GAME" button resets the game to its initial state.
- Dynamic dice rolling functionality.
- Switching between players during gameplay.
- Updating scores in real-time.
- Winner declaration when a player reaches or exceeds 100 points.
- Ability to start a new game.
- HTML5
- CSS3
- JavaScript