Skip to content

ayushbrmn08/Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game – JavaScript Web App

A lightweight and responsive Dice Game built with HTML, CSS, and JavaScript.
Reload the page to roll the dice and instantly determine the winner.

Live Demo

https://ayushbrmn08.github.io/Dice-Game/

Features

  • 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

Tech Stack

  • HTML5 – Structure
  • CSS3 – Styling
  • JavaScript (ES6) – Game logic
  • Bootstrap 5 – Responsive UI
  • Font Awesome – Icons

Screenshot

Dice Game Screenshot

How It Works

  1. Two random numbers (1–6) are generated on page load
  2. Dice images update dynamically based on values
  3. The player with the higher number wins
  4. Equal values result in a draw

Learning Outcomes

  • JavaScript random number generation
  • DOM manipulation techniques
  • Responsive web design principles
  • Clean and structured front-end code

Run Locally

git clone https://github.com/ayushbrmn08/Dice-Game.git
cd Dice-Game
open index.html

About

A beginner-friendly dice game project demonstrating JavaScript logic, DOM manipulation, and responsive UI design with Bootstrap.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors