Welcome to Pig Game. It is build with HTML, CSS and JavaScript.
- Click the "Roll Dice" button to start the game.
- Roll the dice and accumulate points in the "Current Points" section.
- Click "Hold" to add your current points to your overall score.
- The game then passes to the next player.
- If a player rolls a "one," their current score resets to zero.
- The current score is always added to the main score.
- The first player to reach 50 points wins!
- Use the "New Game" button to restart.
Enjoy playing with your friends! 🎲
-
Clone the Repository:
git clone https://github.com/tonmoy-dev/pig-game
-
Change the directory:
cd pig-game
-
Play the game:
Open the index.html file to the browser.
You can contribute to this code to make the game more better.
This project is licensed under the MIT License - see the LICENSE file for details.