Skip to content

caitlinmalloch/pig-game

Repository files navigation

Pig Game: A Dice Throwing Game, 2-Player

A dice game built with JavaScript

About

Pig Game is a dice game for 2 players. This game was built using JavaScript and is fully responsive.

Preview

pig-game-preview

Live Site

https://pig-game-caitlin-malloch.netlify.app

Netlify Status

Game Instructions

  • 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!

Tech Stack

  • HTML -CSS -JavaScript

Flowchart Used During Development

pig-game-flowchart

Acknowledgement

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.

About

2-player dice game using JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published