Quote:
|
Originally Posted by OP
There is only 1176 diferent combination of 5 card from 52:
2c,2s,2d,2h,3c
2c,2d,2h,3c,3s
2c,2h,3c,3s,3d
|
This type of ranking is not possible. Why is a straight flush in clubs any better than a straight flush in hearts? Suits are not ranked. But if they are, and you are writing a sim, why not just create a datatype that uses the cards as digits, and each suit is wqorth more than an the other. That way you can just run a for-next loop and have it create a table for you.
Now, if you ask nicely, I can post the code I developed to rank the hands per normal poker rankings. It works fine 5 card combinations, and that way you can increment a hand and it will give it a value. Its a little rusty since I never totally finished it, but you can easily mop it up....