This is a GUI-based Blackjack game. The game is based on the description provided in the wikipedia. The objective of the game is to beat the dealer. A standard deck of playing cards has four suits (Hearts, Diamonds, Spades and Clubs) and thirteen ranks (2 through 10, then the face cards Jack, Queen, King and Ace) for a total of 52 cards per deck. Jacks, Queens and Kings all have a rank of 10. Aces have a rank of either 1 or 11 as needed to reach 21 without busting.
GUI Based Blackjack Game in Python3.
Basic Blackjack Rules:
- The goal of blackjack is to beat the dealer's hand without going over 21.
- Face cards are worth 10. Aces are worth 1 or 11, whichever makes a better hand.
- Each player starts with two cards, one of the dealer's cards is hidden until the end.
- To 'Hit' is to ask for another card. To 'Stand' is to hold your total and end your turn.
- If you go over 21 you bust, and the dealer wins regardless of the dealer's hand.
- If you are dealt 21 from the start (Ace & 10), you got a blackjack.
- Dealer will hit until his/her cards total 17 or higher.
- Split can be done when you have two of the same card - the pair is split into two hands.
- You can only double/split on the first move, or first move of a hand created by a split.
- You cannot play on two aces after they are split.
- Python 3.9
- Object Oriented Programming
Download the folder or Clone the Repo and run the temp.py file containing source code. The game is built using Python3 in Object Oriented way.
- Type the below command to run the Blackjack game.
python3 temp.py
- naik-2016-ijca-910409(1).pdf (Added as project file)
- Blackjack Wikipedia
- Tkinter(GUI Library) Documentation
- Shreeraj Bhamare
- Sanmit Wakchaure
- Sanket Khaire