# Designing a program to deal out seven card stud poker hands

Show 80 post(s) from this thread on one page
Page 1 of 2 12 Last
• 12-07-2008
killsthehorse
Designing a program to deal out seven card stud poker hands
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.
• 12-07-2008
tabstop
You should probably look at shuffle algorithms. Dealing cards off the top of the deck should be straightforward.
• 12-07-2008
dudeomanodude
Quote:

Originally Posted by killsthehorse
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.

How many decks of cards does it take to deal out a million hands?
• 12-07-2008
tabstop
Quote:

Originally Posted by dudeomanodude
How many decks of cards does it take to deal out a million hands?

That's why you shuffle.
• 12-07-2008
killsthehorse
Quote:

Originally Posted by dudeomanodude
How many decks of cards does it take to deal out a million hands?

I dont know nothing about this but am willing to learn. What I want to do is to take a situation in a seven card stud poker game and deal out enough hands to give me a probability of what will occur.
• 12-07-2008
dudeomanodude
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.
• 12-07-2008
killsthehorse
Quote:

Originally Posted by dudeomanodude
Yea, I was just wondering what the difference between dealing out thousands or millions of hands was...

I just need to deal out a decent enough of hands to get a close estimation of what will happen. The more hands dealt the better.
• 12-07-2008
dudeomanodude
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...
• 12-07-2008
killsthehorse
Quote:

Originally Posted by dudeomanodude
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.

Whats the best way to approach this?
• 12-07-2008
dudeomanodude
By building an odds calculator and not a simulation
• 12-07-2008
killsthehorse
Quote:

Originally Posted by dudeomanodude
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...

This just gives me down loadable texas holdem poker odd calculators.
• 12-07-2008
dudeomanodude
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.
• 12-07-2008
killsthehorse
Quote:

Originally Posted by dudeomanodude
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.

lol how do good players know the odds? By doing simulations such as what i am doing or playing thousands of hands and recalling what works more often. Thanks for the advice.
• 12-07-2008
dudeomanodude
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.
• 12-07-2008
Salem
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.
Show 80 post(s) from this thread on one page
Page 1 of 2 12 Last