Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.13 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.13 KB

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!