Pig Game is a browser-based game where two players take turns rolling a dice with numbers from 1 to 6 to score points. If a player rolls a 1, the turn switches to the other player. The game continues until one player reaches a score of 20. After the game ends, players can start a new game immediately. This project was developed to enhance skills in JavaScript, DOM manipulation, HTML, BEM, and CSS.
- Dice Rolling: Players roll a dice to accumulate points.
- Turn Switching: If a player rolls a 1, the turn switches to the other player.
- Win Condition: The game ends when one player reaches a score of 20.
- New Game: Players can start a new game after the current game ends.
- JavaScript
- DOM manipulation
- HTML
- BEM (Block Element Modifier)
- CSS