Python code for a multi-player game of Blackjack
This Jupyter Notebook includes the Python code for a simple, text-based, multi-player, multi-deck game of Blackjack - the most widely played casino banking game in the world. Each player competes against the dealer with the aim of reaching a hand total closer to 21 (but not exceeding this value) than the dealer's total. The Wikipedia entry for Blackjack provides full details. The code was developed as a milestone project for the 2021 Complete Python Bootcamp.
My implementation is a simplified version of the game, not including functionality to double down, split, surrender or place insurance bets. Docstrings are provided for the various classes, methods and functions.
- The computer acts as the dealer
- Any number of players can compete
- Any number of decks can be used for a given game
- Any number of rounds can be played in a game, until all players have a zero bank balance
- For each round, players can assign a value (1 or 11) to each ace card in their hand
Python 3.8
Please feel free to contact me (Chris Kelly) at the following email: