For Programmers: Free Programming Magazines  


Home > Archive > Cobol > March 2006 > code for poker hand evaluation?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author code for poker hand evaluation?
joemagiera@ameritech.net

2006-03-07, 6:56 pm

Rather than reinvent the wheel, I thought I'd try here first. Does
anyone know of any public domain software, whether it be Cobol or
otherwise (like a sub-program I can call out of a Cobol program) that
evaluates poker hands, specifically Texas Hold 'Em poker hands?

I'm thinking of something like I call the routine with 8 parameters,
the first 7 being the cards in questions, and it returns in the 8'th
parameter the value of the hand, i.e., straight, flush, 2 pair, etc.

I know there are lots of commerical poker software programs that can
all do this function, but I can't find anything that I can interface
with.

Anyone have any possible solutions? Thanks,

Joe (joemagiera at ameritech dot net)
joemagiera@ameritech.net

Alistair

2006-03-08, 7:55 am


joemagiera@ameritech.net wrote:
> Rather than reinvent the wheel, I thought I'd try here first. Does
> anyone know of any public domain software, whether it be Cobol or
> otherwise (like a sub-program I can call out of a Cobol program) that
> evaluates poker hands, specifically Texas Hold 'Em poker hands?
>
> I'm thinking of something like I call the routine with 8 parameters,
> the first 7 being the cards in questions, and it returns in the 8'th
> parameter the value of the hand, i.e., straight, flush, 2 pair, etc.
>
> I know there are lots of commerical poker software programs that can
> all do this function, but I can't find anything that I can interface
> with.
>
> Anyone have any possible solutions? Thanks,
>
> Joe (joemagiera at ameritech dot net)
> joemagiera@ameritech.net



Go to www.tucows.com (or is it .net?). They have a games software
section and I imagine that what you want will be available there. BTW,
you should attempt to calculate the probability of your hand winning
and you should be able to do so on two cards upwards.

SkippyPB

2006-03-08, 6:55 pm

On 7 Mar 2006 12:05:01 -0800, joemagiera@ameritech.net enlightened us:

>Rather than reinvent the wheel, I thought I'd try here first. Does
>anyone know of any public domain software, whether it be Cobol or
>otherwise (like a sub-program I can call out of a Cobol program) that
>evaluates poker hands, specifically Texas Hold 'Em poker hands?
>
>I'm thinking of something like I call the routine with 8 parameters,
>the first 7 being the cards in questions, and it returns in the 8'th
>parameter the value of the hand, i.e., straight, flush, 2 pair, etc.
>
>I know there are lots of commerical poker software programs that can
>all do this function, but I can't find anything that I can interface
>with.
>
>Anyone have any possible solutions? Thanks,
>
>Joe (joemagiera at ameritech dot net)
>joemagiera@ameritech.net


Look here:
http://www.codeproject.com/csharp/pokerhandevaldoc.asp

or

http://www.softlookup.com/display.asp?id=8630

or

http://www.pokerstove.com/analysis/zealots.php

Google is your friend!

Regards,
////
(o o)
-oOO--(_)--OOo-


"I have a rock garden. Last w three of them died."
--Richard Diran
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Remove nospam to email me.

Steve
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com