https://github.com/nerooc/pig-dice-game
A dice game named "Pig".
https://github.com/nerooc/pig-dice-game
javascript learning-by-project minigame
Last synced: 2 months ago
JSON representation
A dice game named "Pig".
- Host: GitHub
- URL: https://github.com/nerooc/pig-dice-game
- Owner: nerooc
- Created: 2020-03-16T13:22:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-13T19:25:01.000Z (over 5 years ago)
- Last Synced: 2025-03-22T00:17:03.755Z (about 1 year ago)
- Topics: javascript, learning-by-project, minigame
- Language: JavaScript
- Homepage:
- Size: 2.58 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `Pig - dice game`
### [OPEN DEMO](https://pig-dice-gm.netlify.app/)
## Tech stack
- HTML
- CSS
- JS
Basic game made as an exercise with vanilla Javascript.

## Gameplay
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, their score gets wiped 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. The game ends when one of the players reaches/crosses the established limit (set to 30 right now).