Skip to content

KARTHIK-004/DICE_GAME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Dice Game

A simple two-player dice game built using HTML, CSS, and JavaScript. Each player rolls a virtual dice, and the game determines the winner based on the dice values.

## 🌐 Live Demo
Play the game here:  
👉 https://karthik-004.github.io/DICE_GAME/

## Overview
The Dice Game is a browser-based game where two players roll dice simultaneously. The player with the higher dice value wins the round. This project demonstrates basic JavaScript logic, DOM manipulation, and random number generation.

## Key Features
- Two-player dice rolling game
- Random dice value generation
- Automatic winner detection
- Simple and clean user interface
- Instant result display
- Lightweight and fast

## Technology Stack
- HTML5
- CSS3
- JavaScript (ES6)

## Getting Started

### Prerequisites
A modern web browser (Chrome, Edge, Firefox, etc.)

### Installation
1. Clone the repository:
   ```bash
   git clone https://github.com/KARTHIK-004/DICE_GAME.git
  1. Navigate to the project directory:

    cd DICE_GAME
  2. Open index.html in your browser to start playing.

How to Play

  1. Refresh the page or click the roll button (if available).
  2. Both players roll the dice automatically.
  3. The player with the higher number wins.
  4. If both dice values are the same, the game results in a draw.

Project Structure

DICE_GAME/
├── image
├── index.html
├── index.js
├── style.css
└── README.md

Use Case

This project is ideal for:

  • Learning JavaScript fundamentals
  • Practicing random number generation
  • Understanding DOM manipulation
  • Building simple interactive browser games

License

This project is open-source and intended for educational and personal use.


⭐ If you like this project, consider giving it a star on GitHub!

About

A simple two-player web-based dice game built with HTML, CSS, and JavaScript where players roll virtual dice and compare results to determine a winner.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors