Lab Dice Roller Game

2020

Dice Roller Game

JavaScript CSS Git
Dice Roller Game

Dice Roller — it’s a two player game with dice

Watch the game in action on the Youtube video. Or you can play the game now.

Looking at the picture below (main page of the game) there are some options which the two players should adjust.

Dice Roller Game Main page Image
  1. Read the game instructions, found by pressing the second button (Instructions) on the top right.

    a. Set the player names by clicking on Player 1 and Player 2.
    b. Choose the desired winning score. If you don't, it will be set to 100 by default.
    c. Roll the dices and watch for the rules. Press the Hold button when you have to.
    d. A player loses his entire score when he rolls two 1's or two 6's.
    e. The first player who will reach the winning score is the winner.
    f. Game starts from Player 1 by default when the Roll button is pressed.
    Dice Roller Game Instructions
  2. Set their names on Player1 and Player2 respectively by clicking on them.

  3. Choose the desired score by pressing the first button (Winning Score) on the top right. If the players don’t set a score, then the score will be set to 100 by default.

    Dice Roller Game Score Set
  4. Game starts from Player1 by default when the ROLL DICE button is pressed.

  5. The active player has a gray background. This player rolls the dice and continues to roll until the desired winning score is reached. If he rolls two 1’s or two 6’s then he loses his turn and at the same time loses the score he has won so far. To avoid this, he should press the HOLD button and hold the current score.

  6. The first player who will reach the winning score is the winner.

Below are 2 images. One is during the game and the other one is when Player1 has already won.

Dice Roller Game in Action Screenshot Dice Roller Game Winner Screenshot

If the screen is smaller or the user wants to make it smaller, the main page takes some of the following forms.

Dice Roller Game Smaller Screens Dice Roller Game Smaller Screen

Dice Roller Game video

Frequently Asked Questions

How do I win the game?

The first player to reach the winning score wins. The default is 100, and players can choose a different score with the Winning Score button.

What happens when I roll two 1's or two 6's?

You lose your turn and the entire score you have collected so far.

What does the Hold button do?

It holds your current score so it is safe and cannot be lost on the next roll.

How do I set the player names and see whose turn it is?

Click on Player 1 or Player 2 to type a name. The active player has a gray background, and Player 1 starts by default when the ROLL DICE button is pressed.

Badge