Skip to content

Afrisnake/Coding-Blackjack-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Coding-Blackjack-in-Python

Python code for a multi-player game of Blackjack

Introduction

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.

Implementation

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

Dependencies

Python 3.8

Contact

Please feel free to contact me (Chris Kelly) at the following email:
email

About

Python code for a multi-player game of Blackjack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published