**Full House Yahtzee Java**. A simple console version of yahtzee written in java with the ability to keep score. Public static final int total = 17;

I ++){if (diceroll[i] == dice){result += dice;}} return result;} /** * updates the upper_score, lower_score and awards the bonus. Public static final int lower_score = 16; Public static final int yahtzee = 14;

### (really it ought to return true, since it's allowable to count a yahtzee as a full house if you want to.) it would then become:

The main method could be decomposed a bit more to make things easier to follow. Chance can be any roll at all. Pastebin.com is the number one paste tool since 2002. Since there are five dice and each of these dice can have one of six different outcomes, the number of outcomes in the sample space is 6 x 6 x 6 x 6 x 6 = 6 5 = 7776.