Skip to main content

EasyBlackjack

License Last commit Last release

EasyBlackjack is a Single-Deck Blackjack hand generator and calculator.


Installation

Use the package manager Pip to install EasyBlackjack.

pip install EasyBlackjack

Usage

from easyblackjack import EasyBlackjack
EasyBlackjack.generate_cards()
# Returns two random cards with their value.
# For example:
# {
#     'card_one': {
#         'value': '10',
#         'suit': 'H'
#     },
#     'card_two': {
#         'value': '4',
#         'suit': 'S'
#     },
#     'points': 14
# }
EasyBlackjack.calculate_points(['A', '6', '3'])
# Returns the hand value.
# For example:
# 20

License

EasyBlackjack is licensed under the terms of the Creative Commons Zero v1.0 Universal license.

For more information, see the Creative Commons website.

Metadata

Release files for EasyBlackjack 0.1.6

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

Source distribution (sdist)

Source distribution for EasyBlackjack 0.1.6
File Size Uploaded
EasyBlackjack-0.1.6.tar.gz 6.1 kB Details

Release files / EasyBlackjack-0.1.6.tar.gz

Download URL EasyBlackjack-0.1.6.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6b7b7d1f16fe439bb9bcbd054f8bd2189a3e71a2fcfb027a81fcb8b26e5f8272
BLAKE2b-256 checksum
How to use checksums
c20b6bc2075fac272bebb2e00d2b705a3b0bdc99b03d48cf741455a663229ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

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