A simple and interactive dice game that simulates a match between two players. Each player rolls a die, and the one with the higher number wins!
- ๐ฎ Two-Player Gameplay: Simulates a dice roll for each player.
- ๐ฒ Randomized Outcomes: Utilizes random number generation to mimic real dice rolls.
- ๐ Instant Results: Immediately determines and displays the winner after each roll.
- ๐งฉ Beginner-Friendly: Clean and concise code, ideal for those new to programming.
- A modern web browser (e.g., Chrome, Firefox, Edge)
- No additional installations or dependencies required
-
Clone the Repository:
git clone https://github.com/Rahilbhoot/BasicDiceGame.git
-
Navigate to the Project Directory:
cd BasicDiceGame -
Launch the Game:
Open the
index.htmlfile in your preferred web browser.
- Upon opening the game in your browser, two dice will appear on the screen.
- Click the "Roll Dice" button to simulate a roll for both players.
- The game will display the result, indicating which player won or if it's a draw.
- HTML5: Structuring the web page.
- CSS3: Styling and layout.
- JavaScript: Game logic and interactivity.([docs.github.com][1], [docs.github.com][2])
BasicDiceGame/
โโโ index.html # Main HTML file
โโโ style.css # Styling for the game
โโโ script.js # JavaScript logic for dice rolls
Contributions are welcome! If you have suggestions or improvements, feel free to fork the repository and submit a pull request.
For any inquiries or feedback, please reach out to Rahil Bhoot.