Just to be accurate (I'm assuming you're ranking the hands below, worst to best)
3 of a kind beats 2 pair (so they need to be flip-flopped below)

> The type of game really isn't important other than to say the winner 
> would be decided along the lines of "traditional poker" no hi-lo or 
> anything like that. 
> 
> basically:
> high card
> pair
> 3 of a kind 
> 2 pairs
> straight
> flush 
> etc...
> 
> I am trying to do this in a more object oriented fashion so that I can 
> use this object to determine the winner regardless of the game 
> providing winners are determined by "Traditional Poker rules".
> 
> I want to pass in the hand and determine it's value then compare it to 
> the next hand. 
> 
> I am thinking that once I have the ability to determine what hand 
> player 1 has I will then compare player 1's hand to player 2's hand.  
> I will then compare the best of those to hands to player 3, the best 
> of that comparison to player 4 etc.. until I have looped through all 
> the players.
> 
> 
> I have however just come to the realization that if I want to use the 
> object to for 5 card stud as well as Texas Hold'em or Omaha for 
> instance I will need to create the analyzer so that will loop through 
> all the cards to determine the hand, not just 5 cards.
> 
> >ok, so which types of poker games are you going to have in it 
then?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259605
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to