https://github.com/bondok6/pig-game
Roll The Dice game
https://github.com/bondok6/pig-game
Last synced: 16 days ago
JSON representation
Roll The Dice game
- Host: GitHub
- URL: https://github.com/bondok6/pig-game
- Owner: Bondok6
- Created: 2021-04-07T13:10:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-13T20:40:35.000Z (over 3 years ago)
- Last Synced: 2025-01-11T03:45:31.704Z (about 1 month ago)
- Language: CSS
- Size: 1.35 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pig (dice game)

## Live Demo
[Live Demo Link](https://bondok6.github.io/Pig-Game/)
[](https://pig-roll-dice-game.netlify.app/)
## How to play ?
Each turn, a player repeatedly rolls a die until either a 1 is rolled or the player decides to "hold":
- If the player rolls a 1, they score nothing and it becomes the next player's turn.
- If the player rolls any other number, it is added to their turn total and the player's turn continues.
- If a player chooses to "hold", their turn total is added to their score, and it becomes the next player's turn.
> #### The first player to score 100 or more points wins 🏆.
For example, the first player, Donald, begins a turn with a roll of 5.
Donald could hold and score 5 points, but chooses to roll again.
Donald rolls a 2, and could hold witha turn total of 7 points, but chooses to roll again. Donald rolls a 1, and must end his turn without scoring
The next player, Alexis, rolls the sequence 4-5-3-5-5, after which she chooses to hold, and adds her turn total of 22 points to her score.