-
Checking Card Combos
I have most of a Poker game made. The only problem is that I don't know how to check if the player has a winning hand. (i.e. Pair, Straight, Full House) I planned on doing this through a list that holds the values of the players hand. All of my cards have an Alterable String that has the name of the card. (i.e. 5 of Hearts=5H and Kind of Clubs=KC) How would I use this to check for winning combinations?
-
Re: Checking Card Combos
Jeff did an excellent video poker game.You could maybe gets some
tips from that. You can download it here
http://www.flyin.com/video_poker.zip
strat59
-
Re: Checking Card Combos
Thanks, that was a great example. But in his, he only had to test pairs of Jacks or Better, and it took 50 events. I would be looking of upwards of 300 events just on pairs. Any help on a faster method, maybe something to do with looping through the five cards of a hand, would be greatly appreciated.
-
Re: Checking Card Combos
Yeah I see your point.I'm not really clued up on the rules of poker but I had a simular situation making a multi player yahtzee game working out all the multple dice combos and yahtzee bonuses etc. I wound up using the magic deque.The sort feature cut the work in half, Maybe worh a look
strat59
-
Re: Checking Card Combos
I'm not very experienced with the Magic Deque object, but I'll give it a look.