Skip to content

csgaikwad/The-Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dice Roll Game

This simple dice roll game allows two players to roll dice and determine the winner based on the higher roll.

Setup

  1. Enter the names of Player 1 and Player 2 when prompted.
  2. Use the "Roll Dice" button to roll the dice.
  3. The game will display the result and declare the winner.
  4. Use the "Reset" button to start a new round.

Usage

  • Click the "Roll Dice" button to initiate the dice roll.
  • Use the "Reset" button to start a new round.

Code Overview

The JavaScript code uses event listeners to handle button clicks and control the game logic. The game includes functions to simulate dice rolls, update the visual representation of dice, and determine the winner.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • Flexbox
  • CSS Grid
  • Bootstrap

CSS Styling

The CSS provides a visually appealing layout, featuring a dark turquoise background, stylish fonts, and a responsive design with media queries for different screen sizes. Flexbox and CSS Grid are utilized for efficient and flexible layout management, while Bootstrap components enhance the overall design consistency and responsiveness.

Happy gaming!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published