Skip to main content

General Info

Command Line Single-player game of Blackjack loosely following the structure/rules outlined in this YouTube video (https://www.youtube.com/watch?v=eyoh-Ku9TCI).

The game consists of two rounds. In the first round, Player makes an initial bet and then two cards are dealt to the Player along with two cards being dealt to the Dealer with the second card face down/not yet revealed. In the last round, Player is presented with two options: hit or stay. When Player chooses hit, they are dealt another card by the Dealer. When Player chooses stay, they are deciding to not draw another card so the second card of the Dealer is revealed/accounted for. If the Dealer score is less than 16, they are required to draw another card until their score is greater than 16. Player score and Dealer score are then compared with the higher score winning.

At anytime during game play:

  • If Player or Dealer score is greater than 21 (Blackjack), they bust, other entity wins and the game is over.
  • If Player or Dealer score is equal to 21 (Blackjack), they win, other entity loses and the game is over.

If Player wins at Blackjack, they earn 2x their initial bet.

At the end of each game, the Player is asked if they would like to play again.

Setup

To run this project, follow the steps below:

$ pip install play-blackjack
$ python -m blackjack

Alternatively:

$ git clone https://github.com/BenGriffith/blackjack.git
$ cd blackjack
$ python3 -m virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python -m blackjack

Metadata

Release files for play-blackjack 0.1.1

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-blackjack 0.1.1
File Size Uploaded Provenance Actions
play-blackjack-0.1.1.tar.gz 4.1 kB Without provenance Details for play-blackjack-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for play-blackjack 0.1.1
File Interpreter ABI Platform Actions
play_blackjack-0.1.1-py3-none-any.whl Python 3 none any Details for play_blackjack-0.1.1-py3-none-any.whl

Total release size: 10.8 kB

Release files / play-blackjack-0.1.1.tar.gz

Download URL play-blackjack-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b7012c317babc1ff189f5a871347840c411c751d4e3d1bdc9963d18b52b5f2a0
BLAKE2b-256 checksum
How to use checksums
2c6982b634fefdbe1f1f6868e30980cd2f83e5386ed7a79de290ff50ebce12d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release files / play_blackjack-0.1.1-py3-none-any.whl

Download URL play_blackjack-0.1.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d0bb1f9835b5fd125bc4bf3bd456653ff0044393a4c9d37cdbe30e733eba0ad
BLAKE2b-256 checksum
How to use checksums
439ed7c92be2facd28998b0f34a0092028f0bcb441af5fe6fa24fd7a6277289c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Security for play-blackjack 0.1.1

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.1 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