Skip to content

katekeiroz-dev/pig-game.javaScript

Repository files navigation

PIG GAME

ABOUT THE GAME

Pig is a simple dice game first described in print by John Scarne in 1945 .
Players take turns to roll a single dice as many times as they wish, adding all roll results
to a running total, but losing their gained score for the turn if they roll a 🎲.

Game rules

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

If the player rolls the number chosen at the beginning of the game, 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.

PIG GAME LOGIC FLOWCHART

Screenshot 2025-02-02 at 21 23 18

Game layout

Screenshot 2025-02-03 at 21 09 55 Screenshot 2025-02-03 at 21 11 17

TRY IT ⤵️

https://pig-game-katek.netlify.app


♥ by Kate Keiroz.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published