This is a simple Dice Game built with HTML, CSS, and JavaScript. The game allows two players to roll a dice and accumulate points. The player who reaches 100 points first wins the game.
- Two-player game where each player takes turns to roll the dice.
- Players accumulate points based on the dice rolls.
- If a player rolls a 1, their current score for that turn is reset and the turn passes to the other player.
- Players can hold their current score to add to their total score and pass the turn to the other player.
- The first player to reach 100 points wins.
- Roll the Dice: Click the "Roll" button to roll the dice.
- Hold the Score: Once you are satisfied with your score for the turn, click the "Hold" button to keep your points and pass the turn to the other player.
- Winning: The first player to reach 100 points wins the game.
To play the game locally on your computer:
- Clone this repository:
git clone https://github.com/HadyEssa/Dice-game.git
- Open the project folder and launch the
index.html
file in your browser.
- HTML
- CSS
- JavaScript