A simple dice game built with vanilla JavaScript, HTML, and CSS.
- 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.
- IF a player rolls a 1 however, the current score value becomes 0 and it's the next players turn.
- 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.
- First player to 100 points wins the game.
- Fork this repository (Click the fork button at the top of the page).
- Clone the fork to your local machine.
git clone https://github.com/${your_username}/pig-dice
- 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.
- I used
npm install
- Run the application
> live-server
Any comments, questions, or bugs, don't be afraid to let me know!