Skip to main content

No project description provided

Project description

poker_isomorphisms

poker_isomorphisms is a Python library for dealing with flop isomorphisms in relation to poker. Isomorphic in poker refers to strategically equivalent cards. Isomorphic hands can apply to hole cards or community cards (aka a flop). There are 22100 possible flops out of which 1755 are strategically different.

Example 1) AsKs is strategically identical to AcKc on a Th9h7h flop; therefore, these two hands are isomorphic. Example 2) Kh9s3h is strategically identical to Kd9c3d; therefore, these two flops are isomorphic.

GTO Wizard

PioSOLVER

Links

Documentation:

Code: https://github.com/Thurpan/poker_isomorphisms

Pip: https://pypi.org/project/poker_isomorphisms/

Installation

Use the package manager pip to install poker_isomorphisms.

pip install poker_isomorphisms

Usage

import poker_isomorphisms

poker_isomorphisms.flop_isomorphisms('2dAd2s')
# returns ['As2s2h', 'As2h2s', '2sAs2h', '2s2hAs', '2hAs2s', '2h2sAs', 'As2s2d', 'As2d2s', '2sAs2d', '2s2dAs', '2dAs2s', '2d2sAs', 'As2s2c', 'As2c2s', '2sAs2c', '2s2cAs', '2cAs2s', '2c2sAs', 'Ah2h2s', 'Ah2s2h', '2hAh2s', '2h2sAh', '2sAh2h', '2s2hAh', 'Ah2h2d', 'Ah2d2h', '2hAh2d', '2h2dAh', '2dAh2h', '2d2hAh', 'Ah2h2c', 'Ah2c2h', '2hAh2c', '2h2cAh', '2cAh2h', '2c2hAh', 'Ad2d2s', 'Ad2s2d', '2dAd2s', '2d2sAd', '2sAd2d', '2s2dAd', 'Ad2d2h', 'Ad2h2d', '2dAd2h', '2d2hAd', '2hAd2d', '2h2dAd', 'Ad2d2c', 'Ad2c2d', '2dAd2c', '2d2cAd', '2cAd2d', '2c2dAd', 'Ac2c2s', 'Ac2s2c', '2cAc2s', '2c2sAc', '2sAc2c', '2s2cAc', 'Ac2c2h', 'Ac2h2c', '2cAc2h', '2c2hAc', '2hAc2c', '2h2cAc', 'Ac2c2d', 'Ac2d2c', '2cAc2d', '2c2dAc', '2dAc2c', '2d2cAc']

poker_isomorphisms.flop_normalise('7cQc3s')
# returns "Qs7s3h"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Authors

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

poker_isomorphisms-0.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poker_isomorphisms-0.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file poker_isomorphisms-0.5.tar.gz.

File metadata

  • Download URL: poker_isomorphisms-0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for poker_isomorphisms-0.5.tar.gz
Algorithm Hash digest
SHA256 f3d4eb38bcb18bc4b0e663b2e1eafe7d7693ed632a9afa1efc05a5cb5e8cae8e
MD5 0d67928413d50d8158f727ad015a0cdc
BLAKE2b-256 fd74a1148d3c4dc58b6c9b64e8eca7295a4621e31845bb1f8b807e1e470a6987

See more details on using hashes here.

File details

Details for the file poker_isomorphisms-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for poker_isomorphisms-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c4305a9eccf222afebf14b6e793d85733166e40f4235681f3954a3029240a5
MD5 631e8fbac4a9ac10043b32e31d25d314
BLAKE2b-256 53b9658d107bde3cdbbd9b5c29a86e15fd3ff77d4c15e8e7e51f845bc7385928

See more details on using hashes here.

Supported by

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