/Pig-Dice

Dice game built with JavaScript, HTML, and CSS

Primary LanguageJavaScript

Pig Dice

A simple dice game built with vanilla JavaScript, HTML, and CSS.

Rules

  1. On each turn, a player can roll the dice as many times as they wish, and each dice value gets added to their current score.
  2. IF a player rolls a 1 however, the current score value becomes 0 and it's the next players turn.
  3. A player can choose to hold their current score, which then gets added to their total score and then it becomes the next players turn.
  4. First player to 100 points wins the game.

Check it out!

  1. Fork this repository (Click the fork button at the top of the page).
  2. Clone the fork to your local machine.
git clone https://github.com/${your_username}/pig-dice
  1. Install the npm dependencies from your local copy path*
    • I used live-server for serving the application, and it is the only npm dependency. If you already have that installed globally, you can skip this step.
npm install
  1. Run the application
> live-server

Any comments, questions, or bugs, don't be afraid to let me know!