Skip to content

lgope/Pig-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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/