Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pratikpaudel/risky-roll
https://github.com/pratikpaudel/risky-roll
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pratikpaudel/risky-roll
- Owner: PratikPaudel
- Created: 2024-06-02T21:01:44.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-24T03:35:58.000Z (7 months ago)
- Last Synced: 2024-06-24T04:43:05.041Z (7 months ago)
- Language: CSS
- Homepage: https://pratikpaudel.github.io/risky-roll/index.html
- Size: 824 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Risky Roll
Welcome to **Risky Roll**, a fun and exciting dice game where the goal is to be the first player to reach the target score. Points accumulate with each roll, but rolling a 1 ends your turn and cancels your current points. Play wisely and strategically to win!
## Live Demo
You can play the game [here](https://pratikpaudel.github.io/risky-roll/index.html).
## How to Play
1. **Set the Target Score**: Use the slider to set your target score. The default target score is 50.
2. **Roll the Dice**: Click the "Roll Dice" button to roll the dice. If you roll a number between 2 and 6, it adds to your current score. If you roll a 1, your turn ends and your current score is lost.
3. **Hold Your Score**: If you want to save your current score and add it to your total score, click the "Hold" button. This will switch the turn to the next player.
4. **Win the Game**: The first player to reach the target score wins the game, and confetti will celebrate the victory!## Features
- **Dynamic Target Score**: Adjust the target score using a slider.
- **Persistent Target Score**: The target score is saved in local storage and retrieved upon game load.
- **Responsive Feedback**