Skip to content

Texas Hold'em poker calculator to display rank odds.

License

Notifications You must be signed in to change notification settings

JanSkn/poker-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Poker Calculator

A calculator to determine your card rank odds
Explore the docs »

Report Bug · Request Feature

About The Project

image



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.

(back to top)

Installation

Follow these steps to run the project.

  1. Clone the repo
    git clone https://github.com/janskn/poker-calculator.git
  2. Install Python
    sudo apt-get install python3
  3. Install FastAPI
    pip install fastapi
  4. Install Python-Multipart
    pip install python-multipart
  5. Install Uvicorn
    pip install uvicorn

(back to top)

Built With

This project was built with

  • HTML
  • JavaScript
  • Python
  • FetchAPI/FastAPI

(back to top)

Usage

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.

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

About

Texas Hold'em poker calculator to display rank odds.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published