A dice game built with JavaScript
Pig Game is a dice game for 2 players. This game was built using JavaScript and is fully responsive.
https://pig-game-caitlin-malloch.netlify.app
- The goal of the game is for 1 player to reach 100 points in their overall score to win.
- Each player will roll the dice several times and accumulate a score in the current round. The player can either press hold to save their score or keep rolling with the chance of losing their score in the current round.
- When the player rolls a 1, the score for the current round is lost and it is the next player's turn.
- Repeat until a player reaches a score of 100 to win!
- HTML -CSS -JavaScript
Udemy The Complete JavaScript Course 2023: From Zero to Expert! by Jonas Schmedtmann.
I followed the tutorial to learn how to create this game using JS. I also implemented a modal window to open and show game instructions, in addition to adding responsive design for mobile and tablet.