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.dev1.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for cardroom-0.0.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a455ac44dc4e397fd954e9589ee982e44c293080ea026d9f5b0928c5a5f0482b |
|
MD5 | a0c2d061d469401b186bd65e5940e266 |
|
BLAKE2b-256 | 51d5cff4a5b4c92cde85b98a1ec2778024361fcdf1d021f9b7a0b5bca1512737 |