Skip to content

Fatialnd/pig-game

Repository files navigation

Pig Game 🎲

Welcome to the Pig Game! This is a simple and fun dice game where two players compete to be the first to reach a score of 100. The game is built using HTML, CSS, and JavaScript.

How to Play

  1. Objective: The first player to reach 100 points wins the game.
  2. Gameplay:
    • On each turn, a player rolls the die as many times as they want. Each result is added to their turn score.
    • If a player rolls a 1, their turn ends and their turn score is lost.
    • The player can choose to "Hold" at any time, which will add their turn score to their total score and pass the turn to the other player.
  3. Winning: The first player to accumulate 100 points wins the game.

Play the Game

You can play the Pig Game online here.

Features

  • Two-player mode.
  • Rolling the dice and holding options.
  • Dynamic display of current and total scores.
  • Simple, responsive user interface.

Technologies Used

  • HTML: For the game structure.
  • CSS: For styling the game interface.
  • JavaScript: For game logic and interactions.

Setup

If you want to run the game locally:

  1. Clone the repository:
    git clone https://github.com/Fatialnd/pig-game.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published