A game of Blackjack with graphical user interface.
Project description
blackjack-gui
Single-player Blackjack with GUI and possibility to simulate games.
Installation
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install blackjack-gui
Usage
blackjack [OPTION...]
Options:
Name | Default | Description |
---|---|---|
--help |
Show help and exit. | |
--n_games |
10 | Number of rounds to be played. |
--bet |
1 | Bet size. |
--stack |
1000 | Initial stack. |
--ai |
False | If True, computer plays instead of you. |
--count |
False | If True, computer player uses card counting. |
--loglevel |
DEBUG | Adjust amount of logging: DEBUG or INFO. |
--cards |
Simulate certain starting hand only. E.g. --cards=A,8 |
|
--gui |
True | Play with GUI. |
Examples
Open GUI version:
$ blackjack
With the default settings, play 10 rounds of Blackjack without GUI:
$ blackjack --gui=False
Let the computer play perfect basic game and use card counting technique to bring down the house:
$ blackjack --n_games=100000 --ai=True --count=True --loglevel=INFO --gui=False
Simulate soft 19 starting hand only:
$ blackjack --n_games=10000 --ai=True --loglevel=INFO --gui=False --cards=A,8
Notes
- Insurance and even money not implemented
- Otherwise, rules follow: https://casinohelsinki.fi/en/games/blackjack-eng/
- Card images taken from here.
Licence
MIT
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
blackjack-gui-0.0.8.tar.gz
(5.6 MB
view hashes)
Built Distribution
Close
Hashes for blackjack_gui-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cebb55c7368fe9beaa91d80861b2c98803de620309b170ba251fd42628604b85 |
|
MD5 | cbe2784e3c56d5055d0bb56373ab65f4 |
|
BLAKE2b-256 | 461fbb2d0eaaa2051f37cc68fd1633ef08300747b1530b7f3331f09b71208c85 |