- #1

- 6

- 0

- Comp Sci
- Thread starter mike81
- Start date

- #1

- 6

- 0

- #2

ZQrn

Also, what is the dependent value? I mean, I take this is at least the number of players playing, if this is also fixed, then you don't really have a program, you have a constant number that doesn't change. For it to be a program the idea is that it depends on some input.

Another thing that doesn't make sense to me about this question is the fact that people can fault, it's perfectly possible that some one who had a hand that beats yours faults, so you need some chance of people randomly folding, to which psychology comes into play?

So I take it you're supposed to assume that all players play until the end for this experiment and there is no human intervention basically.

So more formally your problem can be expressed (probably) as:

- There are 52 cards

- each player receives 2 of those at random | you get king and 9 of clubs

- of the remaining cards, 5 of those end up randomly in the river so that each player has 7 cards, of which it shares those five with other players

- on those combinations is a total order

finally:

- what is the chance that the combination starting with 9 and king of clubs is the largest element of the set of all the combination the players make under that order.

If you look at it this way, there is with some probability theory an ability to just construct a function which takes the numbers of players as input, and the chance as a rational number as output. All you need to do is formulate that formula into an expression and you're done. This is hardly a problem of programming, rather it is of probability theory.

But, the question you pose here is vague, I had to do a lot of interpretation as I noted, so I'm not sure my formalism of the problem is the problem you intuitively described.

Edit: For strategy, I would start with the total order and define it, an orderning function that takes in two sets of seven cards and determines which is higher.

- #3

- 6

- 0

(3) Time to win at Texas Hold-em. You are getting two cards. It could be a pair (5.9% chance), it could be suited (23.5%, good for flush prospects), it could be unsuited and unpaired (70.6%). At this stage, before ‘the flop’:

• Pair beats other cards unless both cards better (overcards) to the pair.

• Suited beats non-pair unless one of the other cards is an overcard

• Unpaired & unsuited beats same if it has the overcard, otherwise tie.

You’re dealt {K,9} of clubs “the black dog”. The opponent has one of 50x49=1,225 hands. Use a program with the rules above to estimate outcomes for each hand. Divide winning situations by losing situations (ignore ties). What are the ‘odds’ of you winning?

- #4

ZQrn

Therefore, the chance of you winning in that story has no dependent variable any more, it's a constant.

Your program will look similar to

print(that_constant);

(as you can see I don't know Fortran)

This isn't really a programming question as I said, this is probability theory.

- Replies
- 3

- Views
- 947

- Last Post

- Replies
- 5

- Views
- 4K

- Last Post

- Replies
- 0

- Views
- 1K

- Last Post

- Replies
- 5

- Views
- 1K

- Replies
- 7

- Views
- 2K

- Replies
- 12

- Views
- 2K

- Replies
- 4

- Views
- 2K

- Replies
- 2

- Views
- 3K

- Replies
- 6

- Views
- 4K

- Replies
- 1

- Views
- 2K