Dice-Game-HTML-CSS-JS

🎲 Dice Game

A simple and interactive Dice Game built using pure HTML, CSS, and JavaScript where two players roll dice automatically on page refresh, with the winner determined instantly.

πŸš€ Live Demo : https://surya62815.github.io/Dice-Game-HTML-CSS-JS/

✨ Features

πŸ› οΈ Technologies Used

🧠 How It Works

  1. JavaScript generates two random numbers (1–6)
  2. Dice images update dynamically based on the roll
  3. Players’ scores are compared
  4. Winner or draw message is displayed instantly

πŸ“– Learning Outcomes

πŸ“ Project Structure

```text Dice-Game-HTML-CSS-JS/ β”œβ”€β”€ index.html # Main HTML file β”œβ”€β”€ styles.css # Styling and design β”œβ”€β”€ index.js # Game logic and functionality └── images/ # Dice face images (1-6) β”œβ”€β”€ dice1.png β”œβ”€β”€ dice2.png β”œβ”€β”€ dice3.png β”œβ”€β”€ dice4.png β”œβ”€β”€ dice5.png └── dice6.png