Page 1 of 1
Poker Logic
Posted: Sun Oct 29, 2006 9:01 am
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
Posted: Sun Oct 29, 2006 9:28 am
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.
Posted: Wed Nov 01, 2006 10:28 am
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,
printf
Posted: Thu Nov 02, 2006 2:52 am
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?