Skip to content

This code represents my version of the Pig Game, developed as part of Jonas Schmedtmann's JavaScript course project.

Notifications You must be signed in to change notification settings

rwxganta/pig-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Pig Game

This is a simple JS-part implementation of the Pig Game, developed as part of Jonas Schmedtmann's JavaScript course project.

Check the ./starter folder for my version of the project.

Game Rules

Game screenshot

  • The game has two players, taking turns to roll a dice.
  • Each player can roll the dice as many times as they want on their turn.
  • If a player rolls a 1, their current score is lost, and it becomes the other player's turn.
  • If a player chooses to "Hold," their current score is added to their total score, and it becomes the other player's turn.
  • The first player to reach a total score of 100 wins the game.

About

This code represents my version of the Pig Game, developed as part of Jonas Schmedtmann's JavaScript course project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published