https://github.com/antogno/easyblackjack
EasyBlackjack is a Single-Deck Blackjack hand generator and calculator.
https://github.com/antogno/easyblackjack
blackjack pypi-package python tool
Last synced: about 1 month ago
JSON representation
EasyBlackjack is a Single-Deck Blackjack hand generator and calculator.
- Host: GitHub
- URL: https://github.com/antogno/easyblackjack
- Owner: antogno
- License: cc0-1.0
- Created: 2021-10-19T22:54:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-26T11:41:44.000Z (over 3 years ago)
- Last Synced: 2025-01-09T00:09:07.335Z (over 1 year ago)
- Topics: blackjack, pypi-package, python, tool
- Language: Python
- Homepage: https://pypi.org/project/easyblackjack
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyBlackjack
EasyBlackjack is a Single-Deck Blackjack hand generator and calculator.
---
## Installation
Use the package manager [Pip](https://pip.pypa.io/en/stable/) to install EasyBlackjack.
```console
$ pip install EasyBlackjack
```
## Usage
```python
from easyblackjack import EasyBlackjack
```
```python
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
# }
```
```python
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](https://github.com/antogno/easyblackjack/blob/master/LICENSE).
For more information, see the [Creative Commons website](https://creativecommons.org/publicdomain/zero/1.0/).