Skip to content

Implemented the Pig Game with the JS for logic and HTML&CSS as frontend

License

Notifications You must be signed in to change notification settings

manipta/ThePigGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The-Pig-Game

This is a Pig game made in JavaScript with an interactive UI

Rules:

  • There are two Players
  • Each time Dice is rolled, the score current is added to the previous score.
  • If you hold the score, the score will be saved to your total score (and turn will be changed) else it will not be counted to total score (till now)
  • If Dice appears as 1 then the player is switched and all current scores will vanish if not held.
  • When the Player's total Scores become equal to or greater than 100 then the player will win the game.

Game Starting Screenshot

Winning Game Screenshot

Player 1 won, click New Game button to restart the game

About

Implemented the Pig Game with the JS for logic and HTML&CSS as frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published