A Django application for poker tournament and table management
Project description
A Django application for poker tournament and table management.
Features
Table management.
Tournament management.
Installation
pip install cardroom
Usage
Below shows a sample usage of Cardroom.
Add cardroom to the installed apps.
INSTALLED_APPS = [
...
'cardroom',
...
]
from cardroom import Table
from pokerkit import (
BettingStructure,
Deck,
Opening,
StandardHighHand,
Street,
)
def callback(table, operation):
pass
table = Table(
6,
True,
Deck.STANDARD,
(StandardHighHand,),
(
Street(
False,
(False,) * 2,
0,
False,
Opening.POSITION,
1,
None,
),
Street(
True,
(),
3,
False,
Opening.POSITION,
1,
None,
),
Street(
True,
(),
1,
False,
Opening.POSITION,
1,
None,
),
Street(
True,
(),
1,
False,
Opening.POSITION,
1,
None,
),
),
BettingStructure.NO_LIMIT,
True,
None,
(1, 2),
0,
range(80, 201),
30,
1,
1,
100,
0.05,
0.1,
0.05,
0.1,
0.1,
0.1,
10,
10,
10,
10,
3,
0.5,
0.5,
0.5,
1,
callback,
)
table.run()
Testing and Validation
Cardroom has extensive test coverage, passes mypy static type checking with strict parameter, and has been validated through extensive use in real-life scenarios.
Contributing
Contributions are welcome! Please read our Contributing Guide for more information.
License
Cardroom is distributed under the MIT license.
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
cardroom-0.0.1.dev2.tar.gz
(21.3 kB
view hashes)
Built Distribution
Close
Hashes for cardroom-0.0.1.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932781200cc0867f11c0575806a5e61dab54b1a3b90f889671b7e092e7e2af12 |
|
MD5 | c3b2bbe4315b448000d1d3873b172f22 |
|
BLAKE2b-256 | c54c2da9bfb2c146aa6280c40f00bd410c790cef7b2592a722cb6729eeb1fb54 |