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

https://github.com/lgope/pig-game

This is a Pig Game! 🎲🎲
https://github.com/lgope/pig-game

css3 dice html5 javascript-dom pig-game player-rolls player-turn

Last synced: 7 months ago
JSON representation

This is a Pig Game! 🎲🎲

Awesome Lists containing this project

README

          

# Pig-Game
This is a simple web version of the Pig game which was first described in print by John Scarne in 1945. Pig is a simple dice game in which, each turn, a player repeatedly rolls a die until either a 1 is rolled or the player decides to "hold". The first player to score 100 points wins the game.

# GAME RULES :

- The game has 2 players, playing in rounds
- In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score
- BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
- The player can choose to 'Hold', which means that his ROUND score gets added to his GLBAL score. After that, it's the next player's turn
- The first player to reach [FINAL SCORE] points on GLOBAL score wins the game!

Good Luck ✌🙂

### Technology Used :


  • HTML5

  • CSS3

  • JavaScript

### Setup/Installation Requirements :


  • Download and install a web browser

  • Clone this repository on your local computer

  • Open index.html in web browser

### Known Bugs
Feel free to email me at lakshman.gope2@gmail.com if you run into any issues or have questions, ideas or concerns.
Please enjoy and feel free to share your opinion, constructive criticism, or comments about my work. Thank you! 🙂

#### Future Updates
* Enable PWA
* Leaderboard
* Players profile

And More ! There's always room for improvement!

#### Deployed Version (Feel free to visit) 👇
https://lgope.github.io/Pig-Game/