formidablae / pig_game

Pig Game Project from The Complete JavaScript Course https://www.udemy.com/course/the-complete-javascript-course/ . Play here: https://formidablae.github.io/pig_game/ or https://formidablae-pig-game.netlify.app/

Home Page:https://formidablae-pig-game.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pig game

Pig is a simple two player dice game.

Play here: formidablae.github.io/pig_game or formidablae-pig-game.netlify.app

Each turn, a player repeatedly rolls a dice. The player may decide to hold the score and change turn or addup with another roll.

  • If the player rolls a 1, their current score gets zeroed and the other player takes turn.
  • If the player rolls any other number, it is added to their current score and the player's turn continues.
  • If a player chooses to "hold" the current score, their turn total is added to their score and the other player takes turn.
  • The first player to score 100 or more points wins.

About

Pig Game Project from The Complete JavaScript Course https://www.udemy.com/course/the-complete-javascript-course/ . Play here: https://formidablae.github.io/pig_game/ or https://formidablae-pig-game.netlify.app/

https://formidablae-pig-game.netlify.app/


Languages

Language:JavaScript 41.4%Language:CSS 40.6%Language:HTML 18.0%