An open API service indexing awesome lists of open source software.

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".

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.

![alt text](https://github.com/nerooc/Pig-Dice-Game/blob/master/preview.png)

## 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).