Skip to content

Ai31024/RollTheDice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game

Welcome to the Dice Game! This project is a simple web-based game where players roll dice and see who wins. It uses HTML, CSS, and JavaScript to provide a fun, interactive experience.

Features

  • Roll two dice by clicking the "Roll Dice" button.
  • Displays the dice images corresponding to the rolled numbers.
  • Shows the result of the dice roll in the center, indicating whether Player 1 wins, Player 2 wins, or if it's a draw.
  • Responsive design that looks great on various screen sizes.

Technologies Used

  • HTML: For the structure and content of the webpage.
  • CSS: For styling the webpage, including custom colors and responsive design.
  • JavaScript: For the game logic and dynamic updates to the dice images and results.
  • Bootstrap 5: For responsive layout and styling.

Installation

  1. Clone the repository:

    git clone https://github.com/Ai31024/RollTheDice.git
    
  2. Navigate to the project directory:

    cd RollTheDice
    
  3. Ensure you have an internet connection to load Bootstrap from the CDN, or you can download Bootstrap and include it locally.

Usage

  1. Open the index.html file in your web browser.
  2. Click the "Roll Dice" button to roll the dice.
  3. The dice images and results will update accordingly.

Credit

License

This project is licensed under the MIT License - see the MIT License for details.

About

Roll the dice program, made with vanilla web tools and bootstrap v5.3.3. Main emphesis is on JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published