Poker Logic

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
printf
Forum Contributor
Posts: 173
Joined: Wed Jan 12, 2005 5:24 pm

Poker Logic

Post by printf »

I've been working on a back end socket server for tournament style 7 card, 10 players per table, Texas holdem with a flash front end. I am not really a poker player, but I have been reading so I think I have most of it figured out, but I do have one question!

Is the royal flush and four of a kind the only hand types that don't need high card logic?

tia

printf
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Well you'd still need high card logic for four of a kind if somebody else also has a 4 of a kind.

Royal Flush (in most variations) will win outright but statistically it's exactly the same as a straight flush.
printf
Forum Contributor
Posts: 173
Joined: Wed Jan 12, 2005 5:24 pm

Post by printf »

Thanks for that info. For now I am just testing each type of hand to determine the winner. I separated the Flush into (3) different kinds (royal, straight, match) because trying to figure the winner by just matching a flush then see who has the highest cards or if it is a straight and higher, take (2) times the amount of code than going in order (royal flush, straight flush, 4 of a kind, matching flush, full house, straight, 3 of a kind, 2 pair, 2 of a kind, high card) to determine each users hand with the flop!

I have whole backend done, including the socket server with ODBC tie in, now I am moving on to the Flash part. I've never did this kind of thing in Flash before so I have a feeling I am in for many sleepless night, :wink:


printf
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

You really do, though, need to be able to compare high cards, like d11wtq said. A royal flush is only an ace-high straight fulsh, as opposed to a 6-high or a 9-high straight flush. If you can identify hand types, can't you just extract the high card of each hand and do a simple greater than/less than comparison?
Post Reply