Skip to content

amagana8/poker-monte-carlo

Repository files navigation

Poker-Monte-Carlo

Uses Monte Carlo Methods to determine the probability that a given starting hand in poker will win the round.
This program simulates multiple games, randomizing the other players' cards as well as the flop, turn, and river each time, to determine the probability your starting hand will win any given game.

The program asks the user for their starting hand, the number of other players in the game, and how many times to simulate the game.
Afterwards, it tells you the percentage of those rounds that your hand won, lost, or tied. Thus, giving you the probability your starting hand will win the game.

Graphs

These graphs are made using data generated by this program. They show how the precision of the probability estimates increase as more games are simulated.
Below are graphs for 3 different starting hands.

Ace of Spades and Ace of Hearts

image

2 of Clubs and 7 of Diamonds

image

6 of Diamonds and Jack of Hearts

image

Examples

Example results with different starting hands.
Below are screenshots for the same 3 staring hands above.

Ace of Spades and Ace of Hearts

image

2 of Clubs and 7 of Diamonds

image

6 of Diamonds and Jack of Hearts

image

Dependencies

This program uses the following python packages.

  • NumPy
    • Numpy is used throughout the program for many of the various calculations.
  • Matplotlib
    • Matplotlib is not necessary for this program. It is only used here to produce graphs like the ones above, to show how the probability estimates are affected by the number of games simulated.

About

Uses Monte Carlo Methods to determine the probability a starting hand in poker will win the round.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages