The aim of the game is to make 21 with your cards without going over.
You will go first, and dealer will go second.
The Dealer MUST always choose hit unless they are at 17 or above in which case they MUST stand.
In this version of the game, a Blackjack is an automatic win unless both players get one.
Ace is always 1 unless within a Blackjack (Starting hand of 21)
Are you ready? Y/N: Y
You drew K♦
The Dealer drew
score is checked
You drew 5♦
The Dealer drew
Your cards are: ['K♦', '5♦']
The Dealers first card is: 3♦
score is checked
score is checked
score is checked
score is checked
Your current score is: 15
The Dealers score is: 13
Hit or Stand?: stand
<class 'int'>
Your score is 15
Would you like to Hit or Stand?: stand
You stand on 15
<class 'int'>
The Dealer Draws 10â™
score is checked
The Dealers Score is 23
<class 'int'>
The Dealer is bust at 23
dealerScore final
<class 'NoneType'>
playerScore final
<class 'int'>
Traceback (most recent call last):
File "d:\webdevprojects\Python Course\CardGames.py", line 260, in <module>
SelectAGame()
File "d:\webdevprojects\Python Course\CardGames.py", line 19, in SelectAGame
BlackJack()
File "d:\webdevprojects\Python Course\CardGames.py", line 255, in BlackJack
SelectAGame()
File "d:\webdevprojects\Python Course\CardGames.py", line 19, in SelectAGame
BlackJack()
File "d:\webdevprojects\Python Course\CardGames.py", line 250, in BlackJack
CheckWin(playerScore, dealerScore)
File "d:\webdevprojects\Python Course\CardGames.py", line 189, in CheckWin
elif playerScore <= 21 and dealerScore > 21:
^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'int'```