Skip to main content

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


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.dev0.tar.gz (12.2 kB view hashes)

Uploaded Source

Built Distribution

cardroom-0.0.1.dev0-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

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