Skip to content

tugcecgn/Dice-Game

Repository files navigation

Dice Game 🎲

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.

🚀 Technologies Used

  • ⚛️ React.js – For the user interface
  • 🎨 CSS – For styling
  • 🧠 JavaScript – For game logic
  • 📄 HTML – For page structure

✨ Features

  • 🎲 Dice roll animation (changes every 150ms for 3 seconds)
  • 🧍 You vs 💻 Computer
  • 🏆 Displays win/loss/draw result
  • 📝 Customizable player name input

🕹️ How to Play?

  1. Enter your name in the input field.
  2. Click the "Roll the dice 🎲" button.
  3. Dice roll for 3 seconds with animation.
  4. Result is shown:
    • You win! 🎉
    • Computer wins! 😔
    • It's a draw! 🤝

🔧 Installation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published