đ˛ Dice Game
Dice Game is a fun and interactive web-based game that simulates a two-player dice roll battle. With every page refresh, each player rolls a virtual dice, and the game instantly declares a winner based on the higher roll.
đ Live Demo: Play Now
đšī¸ How It Works
- The game auto-refreshes or is triggered on reload
- Two virtual dice roll randomly
- The dice images update dynamically using JavaScript
- The player with the higher number wins
- A message is displayed declaring the winner or a draw
⨠Features
- Simple and lightweight design
- Dynamic dice roll using
Math.random()
- JavaScript DOM manipulation
- Responsive layout
- Great project for beginners to learn JS interactivity
đ ī¸ Tech Stack
- HTML5
- CSS3
- JavaScript (Vanilla)
đ Project Structure
Dicegame/
âââ index.html
âââ style.css
âââ script.js
âââ images/
âââ dice1.png
âââ dice2.png
âââ dice3.png
âââ dice4.png
âââ dice5.png
âââ dice6.png
yaml
Copy
Edit
đ How to Use / Run Locally
- Clone the repository:
```bash
git clone https://github.com/rohitts0001/Dicegame.git
Navigate to the project folder:
bash
Copy
Edit
cd Dicegame
Open index.html in your browser.