Re: ordering Poker hands

2007-04-23 Thread Chris Tsongas
Hey Rick, Do you still have the source for that and/or the cf_videopoker tag? I downloaded the encrypted version from the exchange, but got a CF error--maybe it's not MX compatible? I'm happy to pay for the source so I can get it working. Thanks, Chris Joshua Cyr wrote: Ray Camden did a

Re: ordering Poker hands

2006-11-08 Thread Brian Simmons
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

Re: ordering Poker hands

2006-11-08 Thread Craig Drabik
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. Everybody seems to be advocating a database-based approach. I wouldn't try to assign a value to each hand at all, you need a

RE: ordering Poker hands

2006-11-08 Thread Dave Watts
Everybody seems to be advocating a database-based approach. I wouldn't try to assign a value to each hand at all, you need a function that compares hands similar to the way humans do. Or, you could consider using a rule engine, which is designed to solve this sort of problem. The only

Re: ordering Poker hands

2006-11-07 Thread Tony
make faces = 10 make aces = 1 or 11 make everything else equal its value. not sure how else you can do it? tw On 11/7/06, So Kenfused [EMAIL PROTECTED] wrote: 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

ordering Poker hands

2006-11-07 Thread So Kenfused
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

RE: ordering Poker hands

2006-11-07 Thread Claremont, Timothy
That would be great for blackjack... But not for poker -Original Message- From: Tony [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:14 PM To: CF-Talk Subject: Re: ordering Poker hands make faces = 10 make aces = 1 or 11 make everything else equal its value. not sure how

RE: ordering Poker hands

2006-11-07 Thread Joshua Cyr
, November 07, 2006 12:49 PM To: CF-Talk 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

Re: ordering Poker hands

2006-11-07 Thread Dan Vega
It may not be poker but you should check out Ray Camden's site. He held a coding contest and one of the projects was to build a blackjack app. On 11/7/06, So Kenfused [EMAIL PROTECTED] wrote: I am building a poker applicaiton. Has anyone dealt with determining the value of a hand? I have

RE: ordering Poker hands

2006-11-07 Thread Joshua Cyr
Bah, blackjack... I should have checked. ;-) -Original Message- From: Dan Vega [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:28 PM To: CF-Talk Subject: Re: ordering Poker hands It may not be poker but you should check out Ray Camden's site. He held a coding contest

Re: ordering Poker hands

2006-11-07 Thread Bryan Stevenson
You'll need a Hands table to define all the possible hands. Then you'll need another table that maps each hand against every other hand and indicates 'beats' or 'does not beat'. HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc.

Re: ordering Poker hands

2006-11-07 Thread Rick Root
So Kenfused wrote: 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. Let's say your hand is an array of structs, where each struct contains card (1-13) and suit (H,S,C,D) so

Re: ordering Poker hands

2006-11-07 Thread Josh Nathanson
, let us know how it goes. - Original Message - From: So Kenfused [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com 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

Re: ordering Poker hands

2006-11-07 Thread Tony
yea :) i won best design :) tw On 11/7/06, Joshua Cyr [EMAIL PROTECTED] wrote: Bah, blackjack... I should have checked. ;-) -Original Message- From: Dan Vega [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:28 PM To: CF-Talk Subject: Re: ordering Poker hands It may

Re: ordering Poker hands

2006-11-07 Thread Rick Root
Joshua Cyr wrote: Ray Camden did a contest for poker I think. Lots of example code and review was done. http://ray.camdenfamily.com/index.cfm/2005/11/23/Intermediate-Contest-Entry- 4 is one entry, there are others there too. Shoot I missed that one, I wrote a cf_blackjack custom tag

Re: ordering Poker hands

2006-11-07 Thread Dan Vega
PROTECTED] Sent: Tuesday, November 07, 2006 2:28 PM To: CF-Talk Subject: Re: ordering Poker hands It may not be poker but you should check out Ray Camden's site. He held a coding contest and one of the projects was to build a blackjack app. On 11/7/06, So Kenfused [EMAIL PROTECTED] wrote: I

Re: ordering Poker hands

2006-11-07 Thread Rick Root
Bryan Stevenson wrote: You'll need a Hands table to define all the possible hands. Then you'll need another table that maps each hand against every other hand and indicates 'beats' or 'does not beat'. That's an interesting idea... There are only 311 million possible hands. Of course

Re: ordering Poker hands

2006-11-07 Thread Bryan Stevenson
why not just one table with the hands ordered appropriately? ...because I'm a bit of a data purist ;-) The order of records in a table implying a hierarchy is a no no in most books. IN my books it should be VERY explicit (thus my example)no room for confusion. Just think if someone

Re: ordering Poker hands

2006-11-07 Thread Tony
ok, so which types of poker games are you going to have in it then? tw On 11/7/06, So Kenfused [EMAIL PROTECTED] wrote: 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.

Re: ordering Poker hands

2006-11-07 Thread Tony
@houseoffusion.com 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

Re: ordering Poker hands

2006-11-07 Thread Charlie Griefer
why not just one table with the hands ordered appropriately? On 11/7/06, Bryan Stevenson [EMAIL PROTECTED] wrote: You'll need a Hands table to define all the possible hands. Then you'll need another table that maps each hand against every other hand and indicates 'beats' or 'does not

Re: ordering Poker hands

2006-11-07 Thread Charlie Griefer
I wrote a Yahtzee game in JavaScript a few years back. same basic theory (in that it had to test for straights, full house, or 'n' number of 1-6 results). I'll have to try and find the code (won't be able to look until this evening). If I can find it, I'll post it tonite. On 11/7/06, So

RE: ordering Poker hands

2006-11-07 Thread Andy Matthews
x737 --//- -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 1:36 PM To: CF-Talk Subject: Re: ordering Poker hands You'll need a Hands table to define all the possible hands. Then you'll need another table that maps

RE: ordering Poker hands

2006-11-07 Thread Claremont, Timothy
Don't forget that it is entirely possible to TIE at poker. It does not happen very often, but it is possible. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:55 PM To: CF-Talk Subject: Re: ordering Poker hands why not just one

Re: ordering Poker hands

2006-11-07 Thread Bryan Stevenson
That's an interesting idea... There are only 311 million possible hands. Of course most of them aren't winners =) Rick Sorry...I thought some common sense would be applied to my post...guess not...LOL I meant to define all possible hands that are worth something (i.e. flush, full house,

Re: ordering Poker hands

2006-11-07 Thread Casey Dougall
On 11/7/06, Tony [EMAIL PROTECTED] wrote: make faces = 10 make aces = 1 or 11 You would need to give every card in the deck a number with a letter next to them for suit. face cards as 10 would work for blackjack but that's it. 2-h, 2-d, 2-s, 2-c 6-h, 6-d, 6-s, 6-c 12-h, 12-d, 12-s, 12-c You

Re: ordering Poker hands

2006-11-07 Thread Charlie Griefer
On 11/7/06, Bryan Stevenson [EMAIL PROTECTED] wrote: why not just one table with the hands ordered appropriately? ...because I'm a bit of a data purist ;-) The order of records in a table implying a hierarchy is a no no in most books. IN my books it should be VERY explicit (thus my

RE: ordering Poker hands

2006-11-07 Thread Dave Francis
PROTECTED] Sent: Tuesday, November 07, 2006 2:59 PM To: CF-Talk Subject: Re: ordering Poker hands On 11/7/06, Tony [EMAIL PROTECTED] wrote: make faces = 10 make aces = 1 or 11 You would need to give every card in the deck a number with a letter next to them for suit. face cards as 10 would work

RE: ordering Poker hands

2006-11-07 Thread Dave Francis
Actually, all but 4 of them ARE possible winners - but you wouldn't want to bet on that :) -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:56 PM To: CF-Talk Subject: Re: ordering Poker hands Bryan Stevenson wrote: You'll need a Hands

RE: ordering Poker hands

2006-11-07 Thread Andy Matthews
Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:09 PM To: CF-Talk Subject: Re: ordering Poker hands why not just one table with the hands ordered appropriately? because I'm a bit of a data purist ;-) The order of records in a table implying a hierarchy is a no no in most

Re: ordering Poker hands

2006-11-07 Thread Bryan Stevenson
Might it not be easiest to, in the hands table, assign a numerical value to each hand, then simply compare those two numerical values to see which one wins. Yep...that would do the trick as well Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc.

Re: ordering Poker hands

2006-11-07 Thread Bryan Stevenson
fair enough...i wasn't as explicit as i should have been. i didn't mean to imply that the order in the table was gospel (altho i do recognize that that is how it read). i was thinking more of a hand column with a value column. -- Charlie Griefer yep...that would indeed work ;-) Bryan

RE: ordering Poker hands

2006-11-07 Thread Doug Bezona
PM To: CF-Talk Subject: RE: ordering Poker hands But card values aren't worth spit in poker. It's card combinations that you have to worry about, and calculate for. For instance, what's the chance of filling 2-3-4-5 on the turn, or on the river? Against 4-4? Or A-A? AAArrgh

RE: ordering Poker hands

2006-11-07 Thread Doug Bezona
--//- -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 2:09 PM To: CF-Talk Subject: Re: ordering Poker hands why not just one table with the hands ordered appropriately? because I'm a bit of a data purist ;-) The order of records

Re: ordering Poker hands

2006-11-07 Thread Dan Vega
cards. If you don't care about those games though, you can certainly save a lot of effort. -Original Message- From: Dave Francis [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 3:34 PM To: CF-Talk Subject: RE: ordering Poker hands But card values aren't worth spit

Re: ordering Poker hands

2006-11-07 Thread Dan Vega
are the same hand. A royal flush is simply the highest possible straight flush. -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 4:07 PM To: CF-Talk Subject: RE: ordering Poker hands That's not what I meant. I'm talking about

Re: ordering Poker hands

2006-11-07 Thread So Kenfused
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

RE: ordering Poker hands

2006-11-07 Thread Dave Francis
] Sent: Tuesday, November 07, 2006 4:23 PM To: CF-Talk Subject: RE: ordering Poker hands Card values are worth a great deal in poker, since it's common for someone to have the same type of hand as an opponent, but with different values - e.g. JJ vs. KK - both are pairs, but the K's are the better hand