Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 877 Bytes

readme.md

File metadata and controls

14 lines (10 loc) · 877 Bytes

Pig Game

Click here to try the game

Pig game implemented with Javascript (learned about manipulating DOM, event listeners, modern JS features), HTML and CSS while doing The Complete JavaScript Course 2020: Build Real Projects!

Game Rules

  • The game has 2 players, played in rounds
  • Players choose a winning score and press New Game (default - 100)
  • Every round, a player rolls dices as many times as he wishes. Each result gets added to his ROUND score
  • If a player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
  • The player can choose to 'Hold', which means that his ROUND score gets added to his GLOBAL score. After that, it's the next player's turn
  • The first player to reach winning points on GLOBAL score wins the game