Very Basic BlackJack

I made a very simple blackjack game for my portfolio project. Might go back at some point and refine it, maybe add some more functionality, but this is what I’ve got for now, Would love some constructive criticism.

Simple BlackJack

1 Like

Hi TJ,
I took a few minutes to play your game and enjoyed it. Great job working through the complexity of the deal. Just a couple of comments–I got this error on the third hit of the second hand I played:
line 51, in
print(“You got a {newCard}. You now have a total of {total}.”.format(newCard = cardNames[playerCards[-1]-1], total = playerTotal))
IndexError: list index out of range

Also, you might want to check to make sure the bet entered is a number before converting the input to an int–I crashed the program by entering the letter ‘a’ for the bet.

Have a great day!
Rick