/The-Pig-Game

The pig game with 2 dice implemented with vanilla JS, HTML and CSS.

Primary LanguageJavaScript

GAME RULES:

  • The game has 2 players, playing in rounds
  • In each turn, a player rolls the dice as many times as they wish. Each result gets added to his ROUND score
  • BUT, if the player rolls 1 on one or both dice, all their ROUND score gets lost. After that, it's the next player's turn.
  • The player can choose to 'Hold', which means that their ROUND score gets added to their GOLBAL score. After that, it's the next player's turn
  • The first player to reach 100 points on GLOBAL score wins the game