Skip to content

tonmoy-dev/pig-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig Game

Welcome to Pig Game. It is build with HTML, CSS and JavaScript.

How to play:

  1. Click the "Roll Dice" button to start the game.
  2. Roll the dice and accumulate points in the "Current Points" section.
  3. Click "Hold" to add your current points to your overall score.
  4. The game then passes to the next player.
  5. If a player rolls a "one," their current score resets to zero.
  6. The current score is always added to the main score.
  7. The first player to reach 50 points wins!
  8. Use the "New Game" button to restart.

Enjoy playing with your friends! 🎲

How to Use:

  1. Clone the Repository:

    git clone https://github.com/tonmoy-dev/pig-game
  2. Change the directory:

    cd pig-game
  3. Play the game:

    Open the index.html file to the browser.

Contributing:

You can contribute to this code to make the game more better.

License:

This project is licensed under the MIT License - see the LICENSE file for details.