This is a simple web-based dice game created for the Guvi web development task. The game allows two players to take turns rolling a virtual dice and keeping track of their scores. The first player to reach a predefined winning score is declared the winner.
Two players can participate. Roll the dice to accumulate scores. Interactive interface with animations. Congratulatory messages for winners. Reset button to start a new game.
To run the dice game website locally, you need:
A web browser (e.g., Chrome, Firefox).
Clone this repository to your local machine:(https://github.com/Godson2611/Dice-Game.git)
Navigate to the project directory link:(https://dice-game-pages.netlify.app/)
Open the index.html file in your preferred web browser.
Click the "Roll" button to roll the dice.
The dice image will change, and your score will be updated.
Play alternates between Player 1 and Player 2.
The first player to reach the winning score wins.
Use the "Reset" button to start a new game.
Each player takes turns rolling the dice.
The number rolled on the dice is added to the player's score.
The game continues until one player reaches the winning score (usually 30).
HTML CSS JavaScript
Contributions are welcome! If you'd like to improve the game or fix any issues, please open an issue or create a pull request.
