This project is a simple dice game with 2 players. I learned how to implement roll dice, hold dice and start new game logics with javascript.
Players take turns to roll a single dice as many times as they wish, adding all roll results to a running total, but losing their gained score for the turn if they roll a 1. The first player to score 100 or more points wins the game. (Learn more)
This project is a coding-along javascript with the Udemy The Complete JavaScript Course 2022 by instructor Jonas Schmedtmann. HTML, CSS and image files were provided by the instructor.
- DOM Manipulation
- CSS Style Manipulation
- Event Handling
https://piggame-hyeyoung.netlify.app/
- Clone the project
git clone https://github.com/hykim-soulis/Pig-game.git
- Go to the project directory
cd my-project
- Double-click the index.html file
The below link is the instructor's github address.
Go to complete-javascript-course/07-Pig-Game/starter/