From: Andy Grant
I don't see how that could be a very huge "IF bible"... ie:
if (num1 >> num2) do_this();
else if (num2 >> num1) do_this_instead();
else do_something_completely_different();
Something in that direction should do it, unless i completely misunderstood what you said.
ok i got the sorting thing thank you very much
btw andy to answer your question.. think about how poker is, you have several main hands.
high card
pair
2 pair
3 of a kind
full house
flush
straight
straight flush
4 of a kind
and 5 of a kind
(flush and straight flush wont be making an appearance in my poker dice game because its not possible to get eather)
ok.. so those are pretty basic.. but now.. break up those with ranking of number and suit..
high card could be any 1 of my 6 dice.
a pair... could be double of any of the 6 dice..
ect.. there are tons of combinations..
so say 2 people each get a pair.. now i need to find out who has the better pair.. if they both have the same pair.. then i need to figure out who has the highest card on that hand..
sorting them by smallest to biggest helps because you can see them all in a line..
without sorting.. the combination of possibilitys grows even more.
sorry if this sounds confusing.. i wish there was a full mod poker game i could look at to see how they do it with 52 cards.. it blows my mind.. im only working with 6