pyBegin / projects / blackjack
🃏

BLACKJACK

Blackjack is a very popular card game commonlu played in casinos worldwide. This program will simulate a virtual casino, with computer as the deale…

314 linesRunnable

BLACKJACK

Blackjack is a very popular card game commonlu played in casinos worldwide. This program will simulate a virtual casino, with computer as the dealer. The purpose of this game is to beat the dealer, which can be done in various ways.

Example

Game Round number : 1
Chips remaining = 100

Enter the amount of chips you want to bet: 20

Player cards are Seven of Hearts and King of Spades
Dealer cards are Four of Clubs and Hidden.
Do you want to hit or stand? : hit

The player hits card : Three of Diamonds

Player's hand :
Seven of Hearts
King of Spades
Three of Diamonds

YOU BUSTED!
The Dealer has hit 2 times.
Dealer's hand :
Four of Clubs
Nine of Hearts
Five of Spades

Since the Player busted , the round is lost.
Player lost the bet money
Do you want to continue? (y/n) : n

Total amount of chips left with the player = 80

Rules


PLEASE NOTE: For simplicity, this program does not include advanced moves, such as double downs, splits and surrenders. The program also currently lacks proper linting, debugging and optimization.