The Poker Analysis Program is a sophisticated tool designed to analyze poker hands and calculate the probabilities of various hand rankings. Developed using C++ and integrated with the SFML (Simple and Fast Multimedia Library) for graphical user interface (GUI), this program provides insights into the statistical likelihood of different poker hands, with a special focus on the coveted Royal Flush.
- Hand Analysis: Analyze poker hands to determine their rank and potential.
- Probability Calculation: Calculate the probability of obtaining different hand rankings based on the number of simulations.
- User-friendly Interface: The graphical user interface built with SFML ensures easy interaction and visualization of results.
- Royal Flush Detection: Continuously runs simulations until a Royal Flush is achieved, providing statistical data along the way.
- Detailed Statistics: Obtain detailed statistics on the frequency of each hand type encountered during simulations.
- Clone the repository from GitHub.
- Ensure you have C++ compiler installed on your system.
- Install SFML library following the instructions on their official website.
- Build the project using your preferred IDE or compile using command line tools.
- Launch the Poker Analysis Program.
- Configure simulation parameters such as the number of decks, players, and simulation iterations.
- Start the simulation to analyze poker hands.
- Monitor the progress until a Royal Flush is achieved.
- Review the statistical data and probabilities of different hand rankings.
- Customize settings and run additional simulations as needed.
A link to how it works. https://youtu.be/oH2hz7r4S0c
A link explaining the code. https://youtu.be/QMxY61YZSvE
Contributions are welcome! If you have suggestions or want to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/improvement). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature/improvement). - Create a pull request.