Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.45 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.45 KB

Pig Game

Pig Game

💻 About the project

Both players compete to achieve a score of 100 points. The first one reaching this score wins.

🤔 How it works

The player 1 kicks off pushing the 'roll dice' button. A random number is generated and showed at the current score tally and on the dice as well. If player 1 rolls 1, the game switches to player 2 and the current score is lost. The active player can save the current score by pushing the 'hold button' but, by doing it, the game switches the player. The first player reaching 100 points wins.

🛠 Technologies used

  • HTML5
  • CSS3
  • JavaScript

HTML5 CSS3 JavaScript

✉️ Contact me