This project uses Python to perform a Monte Carlo simulation to calcuate the probability of each hand winning a game of Poker.
This project was done as a part of the MIDS Bootcamp facilitated by Andrew Hilton and Genevieve Lipp
Note: Additional Details and instructions will be added in the future
The codes
directory contains the following python files:
- card - defines the "Card" class
- deck - defines the "Deck" class
- future - defines the FutureCards class
- pinput - reads the hands from a text file and create the FutureCards Deck
- evaluate - ompares 2 poker Hands and decide the winning hand
- poker - performs a monte-carlo simulation to calcuate the odds of each hand winning the poker game
- execute - To Call poker.py with default arguments for users who don't want to use command line
The poker_test.txt
contains 3 sample hands for testing the monte-carlo simulation. The
Note: To ensure proper testing, the third hand is designed in such a way that it is not expected to win any games.