A Single-Deck Blackjack hand generator and calculator
Project description
EasyBlackjack
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
EasyBlackjack-0.1.6.tar.gz
(6.1 kB
view details)
File details
Details for the file EasyBlackjack-0.1.6.tar.gz
.
File metadata
- Download URL: EasyBlackjack-0.1.6.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6b7b7d1f16fe439bb9bcbd054f8bd2189a3e71a2fcfb027a81fcb8b26e5f8272
|
|
MD5 |
e0f62647735d07f06e1a3b9c35f3cd14
|
|
BLAKE2b-256 |
c20b6bc2075fac272bebb2e00d2b705a3b0bdc99b03d48cf741455a663229ed6
|