Skip to content

shivavamsi/pig-dice-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig (dice game)

Read more about the game on Wikipedia

Description

This web application allows two players to play a game of Pig Dice.

Gameplay

  • Each turn, a player repeatedly rolls two dice, until either a 1 is rolled or the player decides to "hold"
  • If a single 1 is rolled, the player scores nothing and the turn ends.
  • If two 1s are rolled, the player’s entire score is lost, and the turn ends.
  • If neither shows a 1, their sum is added to the turn total.
  • 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.

Notes

Technologies Used:

  • HTML
  • CSS
  • JavaScript

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published