Welcome to the Dice Game! 🎉 This is a fun and interactive game where you roll dice against the computer. After the dice stop rolling, you’ll see who wins, loses, or if it's a draw.
- ⚛️ React.js – For the user interface
- 🎨 CSS – For styling
- 🧠 JavaScript – For game logic
- 📄 HTML – For page structure
- 🎲 Dice roll animation (changes every 150ms for 3 seconds)
- 🧍 You vs 💻 Computer
- 🏆 Displays win/loss/draw result
- 📝 Customizable player name input
- Enter your name in the input field.
- Click the "Roll the dice 🎲" button.
- Dice roll for 3 seconds with animation.
- Result is shown:
- You win! 🎉
- Computer wins! 😔
- It's a draw! 🤝
Follow the steps below to run the project:
# 1. Clone the repository
git clone https://github.com/your-username/dice-game.git
# 2. Navigate into the project folder
cd dice-game
# 3. Install the dependencies
npm install
# 4. Run the project
npm start