Poker Calculator
Marcus Davidsson (2013) davidsson_marcus@hotmail.com Inspired by: http://wizardofodds.com/games/texas-hold-em/old-two-player-version/
We will in this worksheet calculate the pr-flop probability of wining for player-1 given a random par of cards for a two person poker game. Any combination of aces are superior if you want to win the game :-)
We can start with some basic poker probabilities:
#
Poker Hand
Frequency
Probability
1
Royal flush
4
=
2
Straight flush
36
3
Four of a kind
624
Full house
3 744
5
Flush
5 108
6
Straight
10 200
7
Three of a kind
54 912
8
Two pair
123 552
9
One pair
1 098 240
10
High card
1 302 540
NA
Total
We are going to use the following notation:
Jack
We can simulate the hands of two poker player as follows:
We can now see who won the game:
We can use math containers as follows:
Player 1
Player 2
Outcome
A generic version is given by (you can change the text in red for any pair of cards):
Finally we can calculate the pre-flop probability of winning given a two card holding for player one as follows: