Skip to content

Pig is a simple dice game described as a "jeopardy dice game".For jeopardy dice games, the dominant type of decision is whether or not to jeopardise previous gains by rolling for potential greater gains.

Notifications You must be signed in to change notification settings

Yoda-Soda/The-Pig-Game

Repository files navigation

The-Pig-Game

Pig is a simple dice game described as a "jeopardy dice game".For jeopardy dice games, the dominant type of decision is whether or not to jeopardize previous gains by rolling for potential greater gains.

Live site with current branch

Visit The Pig Head Game

Gameplay

Each turn, a player repeatedly rolls a dice until either a 1 is rolled or the player decides to "hold":

  • If the player rolls a 1, they score nothing and it becomes the next player's turn.
  • If the player rolls any other number, it is added to their turn total and the player's turn continues.
  • If a player chooses to "hold", their turn total is added to their score, and it becomes the next player's turn.
  • The first player to score 100 or more points wins.

For example, the first player, Donald, begins a turn with a roll of 5. Donald could hold and score 5 points, but chooses to roll again. Donald rolls a 2, and could hold with a turn total of 7 points, but chooses to roll again. Donald rolls a 1, and must end his turn without scoring. The next player, Alexis, rolls the sequence 4-5-3-5-5, after which she chooses to hold, and adds her turn total of 22 points to her score.

Getting Started

The files can be uploaded to any webserver and/or just run by opening up the index.html in any browser

Prerequisites

Any modern web browser

  • Google Chrome
  • Mozilla Firefox
  • Opera
  • Safari

Installing

A simple git clone into directory of choice would be all that's needed.

Via the terminal:

git clone https://github.com/Yoda-Soda/The-Pig-Game.git

Built With

  • Microsoft Visual Studio Code - The IDE used to write the code
  • Adobe Xd - Used to create mock-up
  • Adobe Id - Used to create artwork
  • HTML - Used as the markup language to describe the structure of the web page
  • CSS - Used for describing the presentation of the web pages
  • JavaScript - Scripting language used to manipulate the web page

Versioning

v0.1 - initial beta

Authors

See also the list of contributors who participated in this project.

License

GNU General Public License

Acknowledgments

About

Pig is a simple dice game described as a "jeopardy dice game".For jeopardy dice games, the dominant type of decision is whether or not to jeopardise previous gains by rolling for potential greater gains.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published