Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.19 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.19 KB

Pig Game

Welcome to the Pig Game! Challenge a friend and test your luck in this two-player dice game.

Play the Game

Game Rules

  • Players: Two players take turns to play.
  • Starting Player: Player 1 starts the game.
  • Rolling the Dice: Click the ROLL button to generate a dice number.
  • Gameplay: Each roll adds the dice number to the current player's score.
  • Winning Condition: The first player to reach a total score of 100 or more wins.
  • Roll Outcome:
    • If the dice rolls a 1, the current player loses their current score, and the turn goes to the next player.
    • If the roll is not a 1, the player can either continue rolling or choose to hold the current score and pass the turn to the next player.
  • Hold Option: Click the HOLD button to switch to the next player and secure the current score.

How to Play

  1. Start the game by clicking the NEW GAME button.
  2. Player 1 begins by rolling the dice.
  3. Keep rolling or choose to hold your score to pass the turn.
  4. Avoid rolling a 1 to prevent losing your current score.
  5. The first player to reach a score of 100 or more wins!

Technologies Used

  • HTML, CSS, JavaScript