i have all that deck creation (n decks btw), shuffling, etc... all done...
its all in my code for rays contest.

tw

On 11/7/06, Josh Nathanson <[EMAIL PROTECTED]> wrote:
> I think it would be pretty complicated.  You need to worry about suits as
> well as number value.
>
> You would need to assign a ranking value to pair, two pair, three of a kind,
> full house etc, up to royal flush, then determine if they are holding that
> hand.
>
> So it might be -
>
> 1. determine the hand they are holding
> 2. assign it a rank (royal flush would be highest rank, no pairs or anything
> would be lowest)
> 3. determine who at the table has the highest rank - if more than one has
> same rank then determine tie breaker
>
> I think step 1 would involve the most code.  You would need to make an array
> for each hand I think, and loop over it comparing each element to each other
> element to determine pairs, flushes etc.
>
> Then you also have the challenge of creating a "deck" and making sure it's
> randomized (shuffled) and that no player is getting the same card as any
> other player.
>
> Good luck, let us know how it goes.
>
>
>
> ----- Original Message -----
> From: "So Kenfused" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[email protected]>
> Sent: Tuesday, November 07, 2006 9:48 AM
> Subject: ordering Poker hands
>
>
> >I am building a poker applicaiton.
> >
> > Has anyone dealt with determining the value of a hand?
> >
> > I have the feeling I am making it even more complicated than necessary.
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:259495
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