How would I go about doing this? I know nothing about programming at all. The program will need to deal out thousands if not millons of hands.
Printable View
How would I go about doing this? I know nothing about programming at all. The program will need to deal out thousands if not millons of hands.
You should probably look at shuffle algorithms. Dealing cards off the top of the deck should be straightforward.
Yea, I was just wondering what the difference between dealing out thousands or millions of hands was...
EDIT: Ah, now I see...
If you want an odds calculator, I think you should be tackling this from a different angle. You're approaching this from a "Monte Carlo" method, which seems a bit cumbersome.
Yea, sure, you can do it that way to get your distribution as accurate as you can (this is Monte Carlo). But I don't think you need to approach it this way. Google Poker odds and start from there...
By building an odds calculator and not a simulation
okay, let me try to clarify.
Really good poker players know the odds when they play (this is what makes them so great). Sure they have the experience of having played thousands of poker hands in their life time, but that's not why they know the odds.
There's no need to deal out thousands or millions of hands to get a better approximation of what the odds are.
There's some mathematical formulas behind poker odds. Find out what those are, and build your calculator based on those formulas.
I suppose you never read any of doyle brunson's books huh? (Neither have I), but I've skimmed through them and he teaches you exactly what I'm suggesting, how to know the odds. Yes, good poker players (like the ones you see on tv) know the odds. Obviously, they don't know what the other player's odds are, but you bet they know their own (they know it exactly, the same as they show next to their cards on the tv). Yes, they know it that well. So what difference does it make for your purposes? Once you knwo how to calculate the odds for one player (or hand), you know how to do it for 7 players, a million players, a million hands.
This is just a math problem, not a computer problem.
You've got a shuffled deck.
It's 1/2 that the top card is red.
It's 1/4 that it's a club
It's 1/13 that it's an ace
You just rank the winning hands (Hand A beats Hand B, because A is statistically rarer). This is given in the rules of the game. If you look hard enough, you should find the actual probabilities as well.
> This just gives me down loadable texas holdem poker odd calculators.
Well they were derived mathematically as well.