A fun two-player dice game built with HTML, CSS, and JavaScript.
๐น Description
Race to 100 points in this classic two-player dice game!
Players roll the dice to accumulate points, but rolling a 1 ends your turn and resets your current round score.
The first player to reach 100 points is crowned the winner ๐.
- ๐ฒ Random dice rolls with dice image updates (
./assets/dice-N.png) - ๐งฎ Player score tracking (current & total)
- ๐ Reset functionality with New Game button
- ๐ฅ Active player highlighting with transitions
- ๐ Winner state with styled announcement
- Clean, modular JavaScript code (
init,switchPlayer,updateScores,checkWinner) - Glassmorphism-inspired UI with frosted blur effect
๐น Live Preview
๐ Play Pig Game
๐น Built With
- HTML
- CSS (glassmorphism, transitions, layout)
- JavaScript (event handling, game logic, DOM updates)
๐น Author
GitHub: @Imissh3r
Project Repo: pig-game
๐น Acknowledgements
This project was created while following
The Complete JavaScript Course 2025: From Zero to Expert!
by Jonas Schmedtmann.

