I am trying to make a blackjack game I am not sure how to make a numerical value on the list for the deck of cards so that I can get the sum of the two cards, for example 2h ( 2 of hearts) to 2 and KS(king of spades) to 10. I am not sure how to do this. Can anyone help me?
Test_lab.aia (3.6 KB)
like this?
I am not good with cards, so dont know the value of cardsyou can use dictionary method..
However this will be simple for you i think, but the same logic can be achieved by multiple methods but this one is one among them..
I have used this procedure only
Test_lab(1).aia (4.7 KB)
For a pack of card, I normally save the number from 1 to 52 to a list.
get the num and suit of one card
get the total num of many cards (cards is a list)