This is a simple web-based dice game built using HTML, CSS, and JavaScript.
The objective of the game is to roll the dice and determine which player has the higher number.
-
Setup
- Site : https://samuel2143.github.io/Dice-game/
- Click on the "Click Me! To roll" to roll the dice.
- The game will display the result and announce the winner.
-
Gameplay
- The dice will display a random number between 1 and 6 for each player.
- If the number rolled by player 1 is greater, a message saying "Player 1 Wins!" will appear.
- If the number rolled by player 2 is greater, a message saying "Player 2 Wins!" will appear.
- If both players roll the same number, a message saying "Draw!" will appear.
-
Features
- Responsive design for various screen sizes.
index.html: HTML structure of the game.styles.css: CSS styling for the game.index.js: JavaScript code for game logic.images/: Contains dice images used in the game.
This project is licensed under the MIT License - see the LICENSE file for details.