Skip to main content

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

image

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.

Metadata

Release files for holdem-sim 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for holdem-sim 0.1.1
File Size Uploaded Provenance Actions
holdem_sim-0.1.1.tar.gz 12.0 kB Without provenance Details for holdem_sim-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for holdem-sim 0.1.1
File Interpreter ABI Platform Actions
holdem_sim-0.1.1-py3-none-any.whl Python 3 none any Details for holdem_sim-0.1.1-py3-none-any.whl

Total release size: 24.4 kB

Release files / holdem_sim-0.1.1.tar.gz

Download URL holdem_sim-0.1.1.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6634b3da098ca81101f1919cb642607d6cceae986310ca0a9744f65b072b7228
BLAKE2b-256 checksum
How to use checksums
e648226cbcf9ec3a851c95100d13ae83498d0fa5c235ed2b98cbea8a19b4f177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/21.3.0

Release files / holdem_sim-0.1.1-py3-none-any.whl

Download URL holdem_sim-0.1.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
549bf65a3839a7e575e3bf5dcf418b64f90303476461516463165ddbe665a078
BLAKE2b-256 checksum
How to use checksums
f26abd491434d8fc6061fb9ad6f24c4c97eb63532929ec3a314a66c889ee1c63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/21.3.0

Security for holdem-sim 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page