A calculator to determine your card rank odds
Explore the docs »
Report Bug
·
Request Feature
This poker calculator for Texas Hold'em determines the odds of each card rank for every stage (Flop, Turn, River).
If there is an occurance of a rank that is covered by a higher rank, it will not be counted. Example: Three-of-a-Kind is also a Pair, but in this case, the Pair is not considered.
Royal Flush is not listed since it is the highest Straight Flush and only has 4 possibilities.
The frontend of this project was made with HTML and JavaScript, the calculations are done with Python. Data is exchanged with REST-API.
Please note that the calculator only considers one player so far.
Follow these steps to run the project.
- Clone the repo
git clone https://github.com/janskn/poker-calculator.git
- Install Python
sudo apt-get install python3
- Install FastAPI
pip install fastapi
- Install Python-Multipart
pip install python-multipart
- Install Uvicorn
pip install uvicorn
This project was built with
- HTML
- JavaScript
- Python
- FetchAPI/FastAPI
Open the index.html file. Run Uvicorn from the path of the api.py file
uvicorn api:app --reload
Simply drag a card into the hand cards or community cards area. Once you selected 2 hand cards and at least 3 community cards, the probabilities get displayed. Remove a card by clicking it.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.