Jump to content

Poker Odds Calculation Algorithms?


Recommended Posts

Hello everybody,I don't know if anybody here will be able to help me, but I figured it cant hurt to ask and maybe somebody here has some insight for me!I'm a software engineering student working on a poker related project for school. As part of our project I'd like to offer odds for all-in situations like you see in some online clients or on TV. I've searched around a little bit and haven't found any info on the subject as it's hard to sift through all the poker odds information that is unrelated to my problem. I'm wondering if anybody here has any insight into what is the best way to calculate the odds of x pairs of hole cards at various stages of the play (preflop, post flop, or post turn)? (I'll stick to only hold'em for now, odds for other games will come later) So far I haven't been able to come up with any ideas other than running every possible board and counting the outcomes, but this seems so slow that there has got to be a better way. Does anybody know (or have any guesses)?As well, when the odds are shown online or on TV, do they take into account mucked cards or do they naively assume a full deck?If anybody has any resources or other forum suggestions where they think I could find relevant information please let me know also.Thanks,Nic

Link to post
Share on other sites

I think most of the odds calculators online work by having the calculator literally play the hand out millions of times and then displaying the results. This produces results that are virtually correct but can be slightly off to a degree that isn't close to significant. If anyone knows of something different or if I'm wrong, feel free to correct me. As for shows on TV, I've seen it both ways. Sometimes, they'll show the odds of one hand against another without taking the other cards at the table into account. Other times, if a specific card has been mucked, it's absence will be reflected in the calculations on screen. I don't think it's the result of naivete, rather I think it's just to provide the viewer with the basic odds that one hand will beat another in a random situation, all other factors ignored.

Link to post
Share on other sites
Hello everybody,I don't know if anybody here will be able to help me, but I figured it cant hurt to ask and maybe somebody here has some insight for me!I'm a software engineering student working on a poker related project for school. As part of our project I'd like to offer odds for all-in situations like you see in some online clients or on TV. I've searched around a little bit and haven't found any info on the subject as it's hard to sift through all the poker odds information that is unrelated to my problem. I'm wondering if anybody here has any insight into what is the best way to calculate the odds of x pairs of hole cards at various stages of the play (preflop, post flop, or post turn)? (I'll stick to only hold'em for now, odds for other games will come later) So far I haven't been able to come up with any ideas other than running every possible board and counting the outcomes, but this seems so slow that there has got to be a better way. Does anybody know (or have any guesses)?As well, when the odds are shown online or on TV, do they take into account mucked cards or do they naively assume a full deck?If anybody has any resources or other forum suggestions where they think I could find relevant information please let me know also.Thanks,Nic
you've never taken a mathematics course? it's pretty easy to figure most things out for yourself.cardplayer.com has an odds calculator. pokerstove is free and has one too. i have a pen."a godless governement? who's in charge of stopping advances is science?""the president of boooya."
Link to post
Share on other sites
you've never taken a mathematics course? it's pretty easy to figure most things out for yourself.cardplayer.com has an odds calculator. pokerstove is free and has one too. i have a pen."a godless governement? who's in charge of stopping advances is science?""the president of boooya."
With pen and paper, trying to calculate the odds of two random hands with the full board to come is an intensive calculation. And, yes, there are existing odds calculators out there, but I think he's trying to figure out a way to do his own.
Link to post
Share on other sites

Use pokerstove.It is exactly what you want. I'm pretty sure that it simply enumerates all possible hand outcomes based on what you input and determines precentages from that (I don't think there's any other good way, really).You should be able to find somewhere online to download it for free. Just google around.

Link to post
Share on other sites
Use pokerstove.It is exactly what you want. I'm pretty sure that it simply enumerates all possible hand outcomes based on what you input and determines precentages from that (I don't think there's any other good way, really).You should be able to find somewhere online to download it for free. Just google around.
http://pokerstove.com maybe? :club:
Link to post
Share on other sites

I think it will be a rather convoluted for loop testing each card and whose hand it makes, pretty rediculus and i dont think id want to write it, though ive had some nasty ones for some java classes. good luck with it.

Link to post
Share on other sites
I think it will be a rather convoluted for loop testing each card and whose hand it makes, pretty rediculus and i dont think id want to write it, though ive had some nasty ones for some java classes. good luck with it.
preflop you can probably find or create and populate a database fairly easily
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...