A lightweight and responsive Dice Game built with HTML, CSS, and JavaScript.
Reload the page to roll the dice and instantly determine the winner.
https://ayushbrmn08.github.io/Dice-Game/
- Random dice roll for two players
- Automatic winner or draw detection
- Responsive layout for mobile and desktop
- Clean and minimal UI using Bootstrap
- Fast DOM-based updates with JavaScript
- HTML5 – Structure
- CSS3 – Styling
- JavaScript (ES6) – Game logic
- Bootstrap 5 – Responsive UI
- Font Awesome – Icons
- Two random numbers (1–6) are generated on page load
- Dice images update dynamically based on values
- The player with the higher number wins
- Equal values result in a draw
- JavaScript random number generation
- DOM manipulation techniques
- Responsive web design principles
- Clean and structured front-end code
git clone https://github.com/ayushbrmn08/Dice-Game.git
cd Dice-Game
open index.html