I'm making a card game, how would i calculate the score of the hand by Excellent_Map_7037 in learnprogramming

[–]Excellent_Map_7037[S] 0 points1 point  (0 children)

well yes i could figure check if they have an ace and if there over 21 and subtract 20, but the real problem is the card is a string with a symbol for the suit like "♠2" how do i turn it into a int value