Welcome to Pig Game! π This project showcases a classic dice game where players take turns rolling dice to accumulate points and aim to be the first to reach 100 points. π
- Dice Rolling: Players can roll a dice to add points to their current score, with the dice result displayed on the screen. π²
- Hold Score: Players can choose to hold their current score, which adds it to their total score and switches to the next player. π
- Winning Condition: The game ends when a player reaches or exceeds 100 points, and they are declared the winner. π
- New Game: Start a new game with a reset of scores and active player indicators. π
- Player Switching: Automatically switch players if a dice roll results in a 1 or after holding the score. π
- JavaScript: For game logic, event handling, and game state management. π₯οΈ
- HTML/CSS: For building and styling the game interface. π¨
A special thanks to Jonas Schmedtmann for the excellent course that provided this project. π
Enjoy the game! π