Skip to content

Vanilla ES5 application that uses DOM manipulation to simulate the "Pig" dice game

Notifications You must be signed in to change notification settings

MaSchVam/Dice-game

Repository files navigation

DOM "Pig" game 🎲

Vanilla ES5 App that lets two players play a game of "Pig", by simple DOM manipulation.

GAME RULES:

  • The game has 2 players, playing in rounds
  • In each turn, a player rolls two dice as many times as he whishes. Each result get added to his ROUND score.
  • BUT, if the player rolls a 1 (on either dice), all his ROUND score gets lost. After that, it's the next player's turn.
  • The player can choose to 'Hold', which means that his ROUND score gets added to his GLOBAL score. After that, it's the next player's turn.
  • The first player to reach 100 points (Default - can be modified inside the game) on GLOBAL score wins the game.
  • If the standard goal of 100 points is altered, the game is reset with the new goal in memory!

Read more about the general concept of the game here: https://en.wikipedia.org/wiki/Pig_(dice_game)

Stylesheet not optimized for mobile

About

Vanilla ES5 application that uses DOM manipulation to simulate the "Pig" dice game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published