Skip to content

A simple and interactive Dice Game built using HTML, CSS, and JavaScript, where two players compete to reach a winning number first.

Notifications You must be signed in to change notification settings

syedabdullahali/Dice-Game

Repository files navigation

🎲 Dice Game (JavaScript Project)

A simple and interactive Dice Game built using HTML, CSS, and JavaScript, where two players compete to reach a winning number first.

🔧 Features:

  • Two-player gameplay
  • Dynamic dice roll using JavaScript
  • Winning number can be set
  • Displays real-time scores
  • Highlights the winner once the game is over

📜 Game Rules:

  1. Each player takes turns rolling the dice.
  2. The rolled number gets added to the player's total score.
  3. The first player to reach the winning number is declared the winner.
  4. Game can be reset to start a new match.

💻 Technologies Used:

  • HTML for structure
  • CSS for styling and layout
  • JavaScript for game logic and interactivity

📸 Preview:

(Add a screenshot or GIF here if possible)

🚀 How to Run:

  1. Open index.html in your browser.
  2. Click on the dice to roll.
  3. Compete and enjoy!

Let me know if you'd like a README.md file generated or want to add advanced features like local storage, animations, or sound.

About

A simple and interactive Dice Game built using HTML, CSS, and JavaScript, where two players compete to reach a winning number first.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published