/PigGame

Primary LanguageJavaScript

This is a simple Pig Game Coded in JavaScript

Rules of the Game

  • Players take turns rolling dice until a player has banked enough points to win.
  • During a players turn that Player may roll the dice and accumulate points until they roll either a 1, two 6's, or decide to bank their current score.
    • If a player rolls a 1 on either die they lose the points they have accumulated during their turn, but keep all previously banked points.
    • If a player rolls two 6's they lose all of their points, both banked and current.
    • If a player decideds to hold they add their turn points to their banked points.