Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thedvlprs/dice-game
🎲 Dice Game. Enjoy and Good Luck! 😉 👉🏻
https://github.com/thedvlprs/dice-game
dice-game-dice-roller dom javascript
Last synced: 6 days ago
JSON representation
🎲 Dice Game. Enjoy and Good Luck! 😉 👉🏻
- Host: GitHub
- URL: https://github.com/thedvlprs/dice-game
- Owner: thedvlprs
- Created: 2019-12-20T16:48:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-24T16:14:18.000Z (about 5 years ago)
- Last Synced: 2024-12-04T15:14:40.457Z (2 months ago)
- Topics: dice-game-dice-roller, dom, javascript
- Homepage: https://hellosophiee.github.io/dice-game/
- Size: 14.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dice Game 🎲
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub contributors](https://img.shields.io/github/contributors/Naereen/StrapDown.js.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/contributors/) [![Open Source Love png1](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/) [![saythanks](https://img.shields.io/badge/say-thanks-ff69b4.svg)](https://saythanks.io/to/kennethreitz)
## Demo
![](new-game-rules.png)
### NEW GAME RULES:
1. A player looses his ENTIRE score when he rolls ```two 6``` in a row. After that, it's the next player's turn. (Hint: Always save the previous dice roll in a separate variable)
2. Now there is a ```FINAL score input field``` where players can set the winning score, so that they can change the ```predefined score of 100```.
3. Now there are two dices in a game.----------
![](dice-game-demo.png)
### GAME RULES:
1. The game has ```2 players```, playing in rounds
2. In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ```ROUND score```
3. BUT, if the player rolls a ```1```, all his ROUND score gets **lost**. After that, it's the next player's turn
4. The player can choose to ```'Hold'```, which means that his ROUND score gets added to his ```GLOBAL score```. After that, it's the next player's turn
5. The first player to reach ```100 points on GLOBAL score``` **wins the game**#### Enjoy and Good Luck! 😀