Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mukundkumra/dicee-game
https://github.com/mukundkumra/dicee-game
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mukundkumra/dicee-game
- Owner: mukundkumra
- Created: 2023-09-27T19:04:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-27T09:19:26.000Z (about 1 year ago)
- Last Synced: 2024-11-18T13:29:26.194Z (2 months ago)
- Language: JavaScript
- Homepage: https://mukundkumra.github.io/dicee-game/
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dicee Game
Welcome to the Dicee Game project! This is a simple web-based game built with HTML, CSS, and JavaScript. The game emulates a dice roll competition between two players, and the player with the higher dice value wins.
## How to Play
- Clone the repository on your local machine.
- Open the `index.html` in your web browser.
- Click the "Refresh Me" button to roll the dice for both players.
- The player with the higher dice value wins. The winning player is indicated with a flag (🚩).
- If both players roll the same value, it's a draw!## Technologies Used
- HTML: Defines the structure of the game interface.
- CSS: Handles the styling of the game, including fonts and layout.
- JavaScript: Responsible for generating random dice values, updating the images, and determining the winner.
## Game Logic
The game follows these main steps:
1. When the "Refresh Me" button is clicked, the game generates random dice values for both players (from 1 to 6).
2. The game updates the images of the dice based on the random values.
3. The player with the higher dice value is declared the winner and indicated with a flag (🚩). In case of a draw, it's labeled as such.## Features
- **Random Dice Rolls:** The game generates random dice values for both players, creating an element of chance.
- **Visual Feedback:** The game provides visual feedback by changing the images of the dice and displaying the winner.---
Enjoy some friendly competition with the Dicee Game! 🎲🚩