Okay so I almost have my entire game of Yahtzee finished I just have one question that I need help with.
What would be the most efficient way to figure out if the user has a 3 of a kind, yahtzee, full house etc? Basically just the bottom section of the scorecard, the rest is working perfect!
So for example for a 3 of a kind would I need to do
if (DieRollOne == 1 && DieRollTwo == 1 && DieRollThree == 1 || DieRollOne == 1 &&...etc)
{
some sort of indication of a 3 of a kind
}
Would there be an easier way of putting in EVERY combination?
Like some way of stating that if any of DieRollOne - DieRollFive have the same value then it could be a three of a kind.
EDIT: I am also trying to export it as a JAR. I am using the BlueJ IDE and i am running windows XP. When i try to run the JAR it says Fatal eceeption occured. Program will exit. Any ideas?