Get probablilites, odds, and win expectations for holdem hands
Project description
holdem_sim
Get probablilites, odds, and win expectations for holdem hands
Installation
$ pip install holdem_sim
Usage
Holdem Percentage Odds and Ratios Calculator
Command line application (for now). There are two flows:
- Single Player Monte Carlo Simulation
- Multiplayer Win Expectancy
Single Player Monte Carlo Simulation
Tell the application your hole cards and board as flop, turn, and river. The application will run 100,000 simulations of that hand and return the percentage and odds of improving to any poker hand.
Usage
python holdem.py -c Rs Rs -f Rs Rs Rs -t Rs Rs -r Rs
where Rs
stands for Rank and suit of a card.
Card ranks must be 2-9, T, J, K, Q, A. Ranks are case sensitive. Suits are c, d, h, s. Suits are case sensitive.
-c
is the flag for your hole cards and to indicate Single Player mode. These must be separated by a space.
-f
or --flop
is the optional flag for flop. Three cards separated by a space.
-t
or --turn
is the optional flag for turn. One card.
-r
or --river
is the optional flag for river. One card.
Sample Output
Multiplayer Win Expectancy
Tell the application your hole cards and board (as flop, turn, and river) and total number of players in the hand.
-m
is the flag to indicate multiplayer mode. The hero's hole cards (2) are required arguments.
-p
or --players
is the flag to indicate the total number of players in the hand. This is a required argument, maximum of 6 players.
--two
through --six
are optional flags to indicate the hands of players other than the hero. 2 cards each.
Returns win expectancy for the hero.
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
holdem_sim
was created by Jay Cohen. It is licensed under the terms of the MIT license.
Credits
holdem_sim
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file holdem_sim-0.1.1.tar.gz
.
File metadata
- Download URL: holdem_sim-0.1.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/21.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6634b3da098ca81101f1919cb642607d6cceae986310ca0a9744f65b072b7228 |
|
MD5 | d65c67acf6e8e4c8f482847c11589763 |
|
BLAKE2b-256 | e648226cbcf9ec3a851c95100d13ae83498d0fa5c235ed2b98cbea8a19b4f177 |
File details
Details for the file holdem_sim-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: holdem_sim-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/21.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549bf65a3839a7e575e3bf5dcf418b64f90303476461516463165ddbe665a078 |
|
MD5 | d5839020f7b252cc2798b74a4d87d9e0 |
|
BLAKE2b-256 | f26abd491434d8fc6061fb9ad6f24c4c97eb63532929ec3a314a66c889ee1c63 |