## On the Subject of Yahtzee

When has bomb defusal ever been a game of chance?

There are five dice in the colors of purple, yellow, blue, white and black. Start by rolling the dice.
Then choose which dice to keep and which to reroll. You may only keep dice of the same value.
Keep repeating this process until you get a Yahtzee.^{*}

At each stage, the dice to keep are given by the following rules:

### If you just rolled 5 dice:

Follow the first rule that applies:

**Large straight:**^{*}keep the die with the highest value equal to a digit in the serial number; if none, keep the purple.**Small straight:**^{*}keep the outlier.^{*}**Three of a kind or full house:**^{*}keep the white die if there are ≥ 2 lit indicators; otherwise, the black die if there are ≥ 2 unlit; otherwise, the highest value not in the three-of-a-kind.**Four of a kind or two pairs:**keep any dice matching the number of batteries; otherwise, matching the number of battery holders; otherwise the yellow die.**Pair:**keep the die of the color listed in the first applicable row of the following table:If there is a... Die color parallel port purple PS/2 port blue RCA port white RJ port black otherwise yellow **Otherwise:**you must roll all the dice again.- In all of the above cases, dice of the same value as a die to be kept may also be kept.

**Yahtzee:** All dice show the same value.

**Large straight:** Five consecutive values.

**Small straight:** Four consecutive values. The **outlier** is the fifth die.

**Three of a kind:** Three dice of equal value, but not four.

**Full house:** Three of a kind plus two of another kind.

These terms always refer to all of the dice, regardless of which were rolled and which were kept.