#Pig Dice Game#
doomvell13.github.io
Pig is considered a jeopardy game, where you risk everything to see if you can win more. The numbers on the die (except for "1") each represent points that can accumulate—the winner is the first player to reach 100 points.
On a turn, a player rolls the die repeatedly. The goal is to accumulate as many points as possible, adding up the numbers rolled on the die. However, if a player rolls a 1, the player's turn is over and any points they have accumulated during this turn are forfeited. Rolling a 1 doesn't wipe out your entire score from previous turns, just the total earned during that particular roll.
A player can also choose to hold (stop rolling the die) if they do not want to take a chance of rolling a 1 and losing all of their points from this turn. If the player chooses to hold, all of the points rolled during that turn are added to his or her score.
When a player reaches the selected winning score or more, the game ends and that player is the winner.
How to play? Select top winning score Press Roll to start game Continue to roll to accumulate more points or hold to add points to your score. If either of the dice is 1, you lose your turn and the points accumulated that turn.
Dice custom data attributes
https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
https://www.sitepoint.com/how-why-use-html5-custom-data-attributes/
Libraries Used
Intro.JS - How to play onboarding
https://introjs.com/
HowlerJS - Sounds effects
https://howlerjs.com/
explanations of the technologies used, the approach taken, a link to your live site, installation instructions, unsolved problems, etc.