I am working on a Blackjack program, but am having a bit of trouble with the finer details.
At the moment, I have a list of the cards and their values, as follows:
Jack = 10 Queen = 10 King = 10 Ace = 11 # card list cards = [2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace]
This allows the calculations later on in the program to do their bit, which is fine.
However, at the moment I get this:
Dealer has [2, 10, 10] for a total of 22 --> The Dealer is busted!
So, currently it's displaying the number 10 for the Royal cards, because that's what's been assigned to it.
But instead of displaying a 10 for the Royal cards, I want it to just display J, Q or K for the Royal cards, and A for the final card.
How do I go about doing that?