Skip to main content

A wrapper for the Poker Sleuth Scriptable Equity Calculator

Project description

This module provides a Python interface to the Poker Sleuth scriptable Texas Hold’em Equity Calculator. Tell it what hands your opponents may have, and it calculates your odds of winning at the showdown if no one folds.

For example, to compute the odds of winning when you have a pair of Jacks, your opponent has the Ace and 5 of diamonds, and the board cards are the 3 of diamonds, 5 of clubs, and 9 of diamonds:

>>> import pokersleuth
>>> pokersleuth.calculate_equity('3d5c9d', ('JJ', 'Ad5d')
[0.48225, 0.51775]

The module can also be used directly from the command line:

C:\>python -m pokersleuth 3d5c9d JJ Ad5d
[0.48225, 0.51775]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PokerSleuth-2.1.0.47.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file PokerSleuth-2.1.0.47.tar.gz.

File metadata

File hashes

Hashes for PokerSleuth-2.1.0.47.tar.gz
Algorithm Hash digest
SHA256 47157903385ebfb36a6bd5ded913aa80a0888a6c03a73972c0a7aadbf389dd87
MD5 c8dad6c5bead89781ebc30443b0e7f69
BLAKE2b-256 05634291a5f960369d0a53351f98138506e67819b4eadb98b9f831abc0622d10

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page