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.
- 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.
- 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.
-
Clone the repository:
git clone https://github.com/Ai31024/RollTheDice.git
-
Navigate to the project directory:
cd RollTheDice -
Ensure you have an internet connection to load Bootstrap from the CDN, or you can download Bootstrap and include it locally.
- Open the
index.htmlfile in your web browser. - Click the "Roll Dice" button to roll the dice.
- The dice images and results will update accordingly.
- Angela Yu (For Inspiration)
- Ai31024 (For Efforts)
- ChatGPT-4o (For Correction & Enhancement)
This project is licensed under the MIT License - see the MIT License for details.