Texas Hold'em Poker tool
Project description
Texas Hold'em Poker tool
Install
pip install THPoker
Requirements
- python>=3.8
Usage
Core
>>> from thpoker.core import Cards, Combo, Hand, Table
>>> combo1 = Combo(hand=Hand("Kh/Ah"), table=Table("8h/9h/Th/Jh/Qh"))
>>> print(combo1)
straight flush (A♥, K♥, Q♥, J♥, T♥)
>>> combo2 = Combo(cards=Cards("Td/As/3h/Th/Ah/Ts/9c"))
>>> print(combo2)
full house (T♦, T♥, T♠, A♠, A♥)
>>> combo1 > combo2
True
Hardcore
>>> from thpoker.hardcore import hcombo
>>> combo1 = hcombo("Kh/Ah/8h/9h/Th/Jh/Qh")
>>> print(combo1)
[9, 14]
>>> combo2 = hcombo("Td/As/3h/Th/Ah/Ts/9c")
>>> print(combo2)
[7, 10, 14]
>>> combo1 > combo2
True
Documentation
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
THPoker-2.2.1.tar.gz
(10.3 kB
view details)
Built Distribution
THPoker-2.2.1-py3-none-any.whl
(18.1 kB
view details)
File details
Details for the file THPoker-2.2.1.tar.gz
.
File metadata
- Download URL: THPoker-2.2.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1e1fbde7d1fbd46b1dde02eeb54de92259a386194f7419d76d5ae794223e881 |
|
MD5 | 4069df04e9b32454ca6c81172552994a |
|
BLAKE2b-256 | dbb206402e069b96f4fcc6577efea113f7477c15f8f726e1eb97d954984c705c |
File details
Details for the file THPoker-2.2.1-py3-none-any.whl
.
File metadata
- Download URL: THPoker-2.2.1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af74a87d0b69cca0d25824617e7a6f6b3ea644e78353052b75fcbb852112e3c0 |
|
MD5 | 892d58e9fa41654a2d6dc56e11e83e59 |
|
BLAKE2b-256 | 0274d1c099025f86b576ce8d009a20ead60160791514015c3edae37c0d64b40b |