Welcome to the Pig Game! This is a simple and fun dice game where two players compete to be the first to reach a score of 100. The game is built using HTML, CSS, and JavaScript.
- Objective: The first player to reach 100 points wins the game.
- Gameplay:
- On each turn, a player rolls the die as many times as they want. Each result is added to their turn score.
- If a player rolls a
1
, their turn ends and their turn score is lost. - The player can choose to "Hold" at any time, which will add their turn score to their total score and pass the turn to the other player.
- Winning: The first player to accumulate 100 points wins the game.
You can play the Pig Game online here.
- Two-player mode.
- Rolling the dice and holding options.
- Dynamic display of current and total scores.
- Simple, responsive user interface.
- HTML: For the game structure.
- CSS: For styling the game interface.
- JavaScript: For game logic and interactions.
If you want to run the game locally:
- Clone the repository:
git clone https://github.com/Fatialnd/pig-game.git