/Pig-Game

:pig: A fun Dice Game(Pig game) in Vanilla JS

Primary LanguageJavaScript

JavaScript Pig Game

================================

Pig is what’s known as a jeopardy game. You will have to make risky choice to balance getting ahead without losing it all.

DEMO

GAME RULES

  • The game has 2 players, playing in rounds.
  • In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND Score
  • BUT , When a player rolls two dice and one of the die is a 1, he loses the points just for that turn.
  • And, if he rolls double 6s, he loses his total score. After which, it's the next player's turn.
  • The player can choose to 'Hold', which means that his ROUND score gets added to his GLOBAL Score. After that, it's the next player's turn.
  • The first player to reach 100 points on GLOBAL score wins the game.

Feel Free To Fork This Repository :)