Yahtzee Rules and Scoring

This is a single player Yahtzee game.

The game consists of thirteen rounds.

Each round begins with the rolling of five dice. This is done by
clicking Roll Dice button to start the first round and
Next Round button for all subsequent rounds.

The player is allowed two more rolls within the round.
The player can choose certain dice to hold their values during
a reroll. This is done by clicking on the checkboxes
underneath and then click the Roll Dice button.

Each round must be scored in one and only one of the following
categories.

Ones:
Sum of the ones displayed at time the score is entered.
would receive a score of 4.

Twos:
Sum of the twos displayed at time the score is entered.
would receive a score of 6.

Threes:
Sum of the threes displayed at time the score is entered.
would receive a score of 3.

Fours:
Sum of the fours displayed at time the score is entered.
would receive a score of 8.

Fives:
Sum of the fives displayed at time the score is entered.
would receive a score of 10.

Sixes:
Sum of the sixes displayed at time the score is entered.
would receive a score of 12.

Three of a kind:
Sum of all of the dice provided three of them are the same; zero
otherwise.
would receive a score of 27.

Four of a kind:
Sum of all of the dice provided four of them are the same; zero
otherwise.
would receive a score of 21.

Full house:
25 points provided that one has threeofakind and the other two
dice are a pair (are the same).
would receive a score of 25.

Small straight:
30 points provided four of the dice have consecutive values; zero
otherwise.
would receive a score of 30.

Large straight:
40 points provided all five dice have consecutive values; zero
otherwise.
would receive a score of 40.

Yahtzee:
50 points provided all five dice have the same value; zero otherwise.
would receive a score of 50.

Chance: Sum of all of the dice.
would receive a score of 25.

This is done by clicking on a radio button for the category and then
clicking the Enter Score button or by double clicking the
scoring category label.

If the criterion for the chosen category is not met, a score
of zero is recorded for that category.

Once a category is selected, it cannot be selected again within the game.