Skip to main content

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

Metadata

Release files for play-poker 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for play-poker 0.1.2
File Size Uploaded Provenance Actions
play-poker-0.1.2.tar.gz 10.5 kB Without provenance Details for play-poker-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for play-poker 0.1.2
File Interpreter ABI Platform Actions
play_poker-0.1.2-py3-none-any.whl Python 3 none any Details for play_poker-0.1.2-py3-none-any.whl

Total release size: 24.3 kB

Release files / play-poker-0.1.2.tar.gz

Download URL play-poker-0.1.2.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
91c2b6cfb6ea923b6b7c117d2c92fd9286b6844e802382cf8eac3bb7fe3522ba
BLAKE2b-256 checksum
How to use checksums
e77ce4434f12cd1ef9a12635aafff0be7e2b8f923d860634636bd3cbb3985b5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / play_poker-0.1.2-py3-none-any.whl

Download URL play_poker-0.1.2-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d1702c0d4483119da6d0ae8b19b3016f6fc66bb3084c47c5897a8a1191c18bd
BLAKE2b-256 checksum
How to use checksums
e2f2b4e5a3969e876b219f0fe483e578af6fe0587eb9c73359d75c51412469f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Security for play-poker 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page