Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/captv89/pig-game
Roll the dice and see who hold the first 100!
https://github.com/captv89/pig-game
css3 flexbox-css game html5 vanilla-javascript
Last synced: 4 days ago
JSON representation
Roll the dice and see who hold the first 100!
- Host: GitHub
- URL: https://github.com/captv89/pig-game
- Owner: captv89
- License: mit
- Created: 2021-10-11T02:19:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-17T05:48:09.000Z (about 3 years ago)
- Last Synced: 2023-07-12T22:24:01.557Z (over 1 year ago)
- Topics: css3, flexbox-css, game, html5, vanilla-javascript
- Language: CSS
- Homepage: https://captv89.github.io/pig-game/
- Size: 1.28 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pig-game
## Instruction:
The game of Pig is a very simple jeopardy dice game in which two players race to reach *100 points*. Each turn, a player repeatedly rolls a die until either a 1 is rolled or the player holds and scores the sum of the rolls (i.e Current Score). At any time during a player's turn, the player is faced with two decisions:**ROLL** - If the player rolls a:
>1: the player scores nothing and it becomes the opponent's turn.
>2 - 6: the number is added to the player's turn total and the player's turn continues.
**HOLD** - The turn total is added to the player's score and it becomes the opponent's turn.
## Screenshots:
### Desktop:
![2862 × 1426](./screenshot-pc.png)### Tab:
![1880 x 1442](./screenshot-tab.png)
### Mobile:
![1440 x 3220](./screenshot-mobile.png)
## Reference:
Know the game: ([Wikipedia](https://en.wikipedia.org/wiki/Pig_(dice_game)))