Skip to main content

PyJack

Hackatime Badge
It's blackjack, but in a single Python file.
Created for Hack Club's Stardance!
It runs almost anywhere you can run Python (I've not tested this claim but there's nothing really stopping it!), and requires such low system specs that I think the toaster sitting in your kitchen could comfortably run it.

Demos

Screenshots


Video

YouTube video (unlisted)

How to play

  1. Download Python from this page if you don't already have it installed.
  2. Download the latest release of PyJack from this page.
  3. Run the downloaded pyjack.py file. All the required JSON files will be automatically created in a new .pyjack_data directory inside your home folder!
  4. Play the game! Only the keyboard is required for this. You navigate around the menus using the number keys, and actually control the game using H and S to hit or stand. Simple!

Why?

Why not?

No but seriously, why?

Blackjack is a pretty good time-waster game, and for those times where you've got nothing to do, why not play some blackjack against a computer? It was also a fun challenge to test my (admittedly kind of lacking) Python skills.

Any future plans for this?

Yes! In the future I'd like to implement a GUI of some sorts and a money system, however due to my great time management skills, I've left most of this to the last day of Stardance, therefore leaving me with no time to actually implement such features...
If you want to have a go at implementing these yourself, why not fork this repo and see if you can add some stuff into this simple game?

Tools I used

  • Google
  • ChatGPT (to fix some small bugs, help out with understanding blackjack's rules, and help out with understanding how to publish this on PyPI)
  • Wikipedia (to copy-paste the fancy Unicode symbols used for the cards)
  • VS Code (to write the damn thing)

Something's broken?

Make a GitHub issue on this page, or DM me on Slack and I'll investigate the issue as soon as possible!

Metadata

Release files for pyjack-blackjack 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 pyjack-blackjack 2
File Size Uploaded Provenance Actions
pyjack_blackjack-2.tar.gz 6.7 kB Without provenance Details for pyjack_blackjack-2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyjack-blackjack 2
File Interpreter ABI Platform Actions
pyjack_blackjack-2-py3-none-any.whl Python 3 none any Details for pyjack_blackjack-2-py3-none-any.whl

Total release size: 13.7 kB

Release files / pyjack_blackjack-2.tar.gz

Download URL pyjack_blackjack-2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
99fbb61f3e9f6040e5af5ef8eab80ebdbe223cb93174a1cfabe12cf1afef7760
BLAKE2b-256 checksum
How to use checksums
4f296ea75344add1dcb747a208677c7681566e90990523aaee5cd0e0680fdd37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyjack_blackjack-2-py3-none-any.whl

Download URL pyjack_blackjack-2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1708f42fdd5953c6de0ac312a443005201841f1e8790c9476ba77878ba5de1f
BLAKE2b-256 checksum
How to use checksums
6f29ef8695eac8efc8f5eb67459f66ad1edf7f73b44b7d746434d02f3f4cb8d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for pyjack-blackjack 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

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