Skip to content

Simple dice game, based on a project from the The Complete JavaScript Course 2019.

License

Notifications You must be signed in to change notification settings

ferreirasara/pig-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pig-game

History

Pig is a simple dice game first described in print by John Scarne in 1945. As with many games of folk origin, Pig is played with many rule variations. Commercial variants of Pig include Pass the Pigs, Pig Dice, and Skunk. Pig is commonly used by mathematics teachers to teach probability concepts. Pig is one of a family of dice games described by Reiner Knizia as "jeopardy dice games". For jeopardy dice games, the dominant type of decision is whether or not to jeopardize previous gains by rolling for potential greater gains. Most jeopardy dice games can be further subdivided into two categories: jeopardy race games and jeopardy approach games. In jeopardy race games, the object is to be the first to meet or exceed a goal score (e.g. Pig, Pass the Pigs, Cosmic Wimpout, Can't Stop). In jeopardy approach games, the object is to most closely approach a goal score without exceeding it.

Rules

  1. The game has 2 players, playing in rounds
  2. In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score
  3. BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
  4. The player can choose to 'Hold', which means that his ROUND score gets added to his GLBAL score. After that, it's the next player's turn
  5. The first player to reach 100 points on GLOBAL score wins the game

Font

Pig (Dice Game)