Skip to content

Pig is a simple dice game first described in print in John Scarne in 1945.[1] Players take turns to roll a single dice as many times as they wish, adding all roll results to a running total, but losing their gained score for the turn if they roll a 1.

Notifications You must be signed in to change notification settings

Pinkish-Warrior/pigGame

Repository files navigation

🐽 Pig Game

👉 This is a game that I have made as to enhanced my JavaScript's skills:

The aim of the game is to reach 💯 points. Everytime that the die is rolled a random number will appear, and the number will be added to the current score of the player but will only adds up to the actual score once the player holds its turn, passing it over to the next player. If the player rolls #1 on the die, the current score is lost and the turn is given to the next player.

image

Whichever player reaches out 💯 points first, wins the game 🏆 and its background color is changed to night rider style.

👉 A new game can be initialized by pressing the NEW GAME 🔄 button.

image 🙃 Have Fun!!!

About

Pig is a simple dice game first described in print in John Scarne in 1945.[1] Players take turns to roll a single dice as many times as they wish, adding all roll results to a running total, but losing their gained score for the turn if they roll a 1.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published