The Pig Game is a turn-based dice game where two players compete to reach a score of 100. Each player takes turns rolling a dice and accumulating points, but if they roll a 1, they lose their current points for that turn. The first player to reach the target score wins.
The Pig Game is a classic two-player dice game that combines luck and strategy. The objective is to be the first player to reach a score of 100. Players take turns rolling a six-sided dice and accumulating points based on the rolls. However, if a player rolls a 1, they lose their current turn's points, and the turn passes to the other player.
- Turn-Based Gameplay: Players take alternate turns to roll the dice.
- Roll Dice: Roll a six-sided dice to accumulate points for the current turn.
- Hold: Save and add the current turn's points to the total score.
- Automatic Turn Switch: Turn switches to the other player if a 1 is rolled or the player chooses to hold.
- Winning Condition: The first player to reach the target score (100) wins the game.
-
Clone the repository:
git clone https://jagathvm.github.io/pig-game/
Check out this website : https://jagathvm.github.io/pig-game/