Skip to content

Kmohamedalie/pig-game

Repository files navigation

Pig Game 🎲

Is Rolling a Die 🎲 game developed by me as part of my JavaScript programming course with Jonas Schmedtmann. You can find and play the game here.

Rules:

A demo is available at the bottom!

  1. First person to get 100 points wins.
  2. Each player can decide to roll the die, as much as they want but if they roll and get one they'll lose all the points in the current section.
  3. It is better to press the hold button to add current points to total score.
  4. If you roll and the output is 1, you'll have to pass on to the next player.



image



FlowChart / Game Logic:

pig-game-flowchart

Demo:

Demo.mp4