I'm making a yahtzee game and trying to determine when someone has a three-of-a-kind, four-of-a-kind, full house, small straight, large straight, and yahtzee. The yahtzee part is easy since all five of the numbers are the same, but the others aren't so easy. Is there a better way to determine when I have three-of-a-kind than using a ton of IF THENS to check all possible ways of getting three of the same numbers?