play-poker


Nameplay-poker JSON
Version 0.1.2 PyPI version JSON
download
home_page
SummaryCommand Line Single-player game of Texas Hold'Em poker
upload_time2023-05-11 05:10:03
maintainer
docs_urlNone
authorBen Griffith
requires_python>=3.9
license
keywords poker games cards texas holdem
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## General Info
Command Line Single-player game of Texas Hold'Em poker. 

At the beginning of the game, you are asked to define how much cash each player will receive along with how many players you would like to play against. You can select from 1 to 4 players. Your competition is then randomly created and a player order is defined for the duration of the game. This order is used to control the blind and betting process.

The game consists of the following stages:
- Preflop: two pocket cards are dealt to each player and big/small blinds are processed
- Flop: discard top card from the stack and deal three community cards
- Turn: discard top card from the stack and deal one community card
- River: discard top card from the stack and deal last community card
- Showdown: player best hands are evaluated and winner is selected

After each of the above stages a round of betting takes place following the defined player order allowing players to check, call, raise or fold. If a player folds, they are simply removed from the player order and the game will continue with the remaining players. During the final stage of the game, the best hand for each player is selected, compared against other players and a winner is selected. 

Currently, logic for the following hands is supported:

- Three of a Kind
- Two Pair
- Pair
- High Card

Additionally, the game only supports use of white chips. I created issues for the remaining poker hands and chip denominations and plan to add them at a later date. While I have written and conducted a lot of testing to ensure a high quality experience, it's possible bugs do exist. Please report any you might experience and I will do my best to squash them promptly.

## Setup
```
$ pip install play-poker
$ python -m poker
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "play-poker",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "poker,games,cards,texas holdem",
    "author": "Ben Griffith",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/e7/7c/e4434f12cd1ef9a12635aafff0be7e2b8f923d860634636bd3cbb3985b5a/play-poker-0.1.2.tar.gz",
    "platform": null,
    "description": "## General Info\nCommand Line Single-player game of Texas Hold'Em poker. \n\nAt the beginning of the game, you are asked to define how much cash each player will receive along with how many players you would like to play against. You can select from 1 to 4 players. Your competition is then randomly created and a player order is defined for the duration of the game. This order is used to control the blind and betting process.\n\nThe game consists of the following stages:\n- Preflop: two pocket cards are dealt to each player and big/small blinds are processed\n- Flop: discard top card from the stack and deal three community cards\n- Turn: discard top card from the stack and deal one community card\n- River: discard top card from the stack and deal last community card\n- Showdown: player best hands are evaluated and winner is selected\n\nAfter each of the above stages a round of betting takes place following the defined player order allowing players to check, call, raise or fold. If a player folds, they are simply removed from the player order and the game will continue with the remaining players. During the final stage of the game, the best hand for each player is selected, compared against other players and a winner is selected. \n\nCurrently, logic for the following hands is supported:\n\n- Three of a Kind\n- Two Pair\n- Pair\n- High Card\n\nAdditionally, the game only supports use of white chips. I created issues for the remaining poker hands and chip denominations and plan to add them at a later date. While I have written and conducted a lot of testing to ensure a high quality experience, it's possible bugs do exist. Please report any you might experience and I will do my best to squash them promptly.\n\n## Setup\n```\n$ pip install play-poker\n$ python -m poker\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Command Line Single-player game of Texas Hold'Em poker",
    "version": "0.1.2",
    "project_urls": {
        "Source": "https://github.com/bengriffith/poker"
    },
    "split_keywords": [
        "poker",
        "games",
        "cards",
        "texas holdem"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2f2b4e5a3969e876b219f0fe483e578af6fe0587eb9c73359d75c51412469f7",
                "md5": "7ae6957d62d0c8f902199d06320eaca9",
                "sha256": "0d1702c0d4483119da6d0ae8b19b3016f6fc66bb3084c47c5897a8a1191c18bd"
            },
            "downloads": -1,
            "filename": "play_poker-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7ae6957d62d0c8f902199d06320eaca9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 13735,
            "upload_time": "2023-05-11T05:10:01",
            "upload_time_iso_8601": "2023-05-11T05:10:01.667501Z",
            "url": "https://files.pythonhosted.org/packages/e2/f2/b4e5a3969e876b219f0fe483e578af6fe0587eb9c73359d75c51412469f7/play_poker-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e77ce4434f12cd1ef9a12635aafff0be7e2b8f923d860634636bd3cbb3985b5a",
                "md5": "0073d00a7963f25350ef459795b9bd8d",
                "sha256": "91c2b6cfb6ea923b6b7c117d2c92fd9286b6844e802382cf8eac3bb7fe3522ba"
            },
            "downloads": -1,
            "filename": "play-poker-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "0073d00a7963f25350ef459795b9bd8d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 10536,
            "upload_time": "2023-05-11T05:10:03",
            "upload_time_iso_8601": "2023-05-11T05:10:03.403663Z",
            "url": "https://files.pythonhosted.org/packages/e7/7c/e4434f12cd1ef9a12635aafff0be7e2b8f923d860634636bd3cbb3985b5a/play-poker-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-11 05:10:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bengriffith",
    "github_project": "poker",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "play-poker"
}
        
Elapsed time: 1.57245s