JavaScript Yahtzee Game

dice dice dice dice dice Rolls Remaining:

Rules

Many of a Kind

  Score Current Roll
# of Ones:
# of Twos:
# of Threes:
# of Fours:
# of Fives:
# of Sixes:
Subtotal:
Bonus: 35 points if subtotal >= 63
Total:

Special Items

  Score Current Roll
3 of a Kind:
4 of a Kind:
Full House:
Small Straight:
Large Straight:
YAHTZEE:
YAHTZEE Bonus:
Chance:
Total:
Grand Total:

Yahtzee High Scores

Score Name Date
Top Score:
2nd Best Score:
3rd Best Score:
dice dice dice dice dice dice


About this JavaScript Yahtzee Game
I created this game as an exercise to learn JavaScript and CSS. I don't know the exact date it was created, but I believe it was the fall of 2001. It has been updated and added to a few times since then. I was thinking of making it a multiple person game, but for now, it is just for one player.

To Play the Game
The game consists of 13 rounds. In each round, you roll the dice and then score the roll in one of 13 categories. You must score once in each category -- which means that towards the end of the game you may have to settle for scoring zero in some categories.

You have five dice which you can roll, represented by the die faces at the top of the page. To start, you roll all dice by clicking on the Roll Dice button. Click Stop Dice to stop the roll and see what you got. The table will update to show you how your current dice score in each available category. After you roll all dice, you can either score the current roll, or re-roll any or all of the five dice.

To hold a die, click the die or the checkbox underneath it. re-roll some of the dice, click on the toggle button underneath the die face you want to re-roll, and then click on the Roll Dice button. This will re-roll the dice, leaving theselected ones unchanged.

You can roll the dice a total of three times -- the initial roll (in which you must roll all the dice), plus two re-rolls of any or all dice. After rolling three times, you must score the roll.

Once you've scored the roll, you roll all the dice again and repeat the process. You continue until all 13 categories have been filled, at which time the game is over.

Top ↑