Skip to content

ujalak1812/Roll-n-Play

Repository files navigation

Roll-n-Play

A fun dice rolling game made using JavaScript DOM Manipulation

HOW TO PLAY

  • The game has 2 players, playing in rounds
  • You can choose number of dice (either 1 or 2, by default 1)
  • In each turn, You are supposed to roll dice by clicking on ROLL DICE button as many times as you wish and each result will be added to your round score
  • You can choose to HOLD, which means that your round score will be added to your global score. After that, it's the next player's turn
  • The deafult winning score is 100, you can set your own

RULES

In case of 1 dice

  • If the player rolls a 1, all his round score gets lost. After that, it's the next player's turn
  • Player looses his entire score when he rolls two 6 in a row. After that, it's the next player's turn.

In case of 2 dice

  • Player looses his current score when one of the two dice is 1.

Check out the demo here Roll n Play