Skip to content

Pig Game - Project created as part of Jonas Schmedtmann's 'The Complete JavaScript Course 2023: From Zero to Expert!' Udemy course

Notifications You must be signed in to change notification settings

InesNi/Pig-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig-Game

Project created for Jonas Schmedtmann's 'The Complete JavaScript Course 2023: From Zero to Expert!' Udemy course

The game is not deployed at this point. In order to play it needs to be hosted on a local server. One way to do this is to use `live-server' package.

GAME RULES

  • 2 players, playing in turns
  • The objective of the game is to reach the score of a 100 before the other player.
  • On players turn 2 actions can be performed: 'roll dice'(can be done multiple times per turn) and 'hold'.
  • When rolling the dice each roll is added to player's current points, unless the roll is a 1
  • If a 1 is rolled, player loses current points (accumulated by previous rolls in this turn) without being able to add them to their score, and it is the next players turn.
  • When player presses 'hold' the current points (that player accumulated with dice rolls) are added to the players score and it is the next players turn.

About

Pig Game - Project created as part of Jonas Schmedtmann's 'The Complete JavaScript Course 2023: From Zero to Expert!' Udemy course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published