/pig-game

Primary LanguageJavaScript

this is a pig game on JS

game rules

there are three buttons in this game "Roll","Hold","New game"

  1. by clicking roll button the dice will roll ,if you roll 1 you lose all your points and the turn goes to your opponent.
  2. by clicking the hold button you could collect your current points and again the turn goes to your opponent
  3. you collect 100 points you win the game

enjoy