I am working on a basic card game. I have the user shuffle two cards and I want to be able to know if the cards are equal or if one is greater then the other or less then the other. Currently I can only tell if they are equal.
let playerCard = playerNum.text
let dealerCard = dealerNum.text
if playerCard == dealerCard {
print("These two strings are considered equal")
}
Aucun commentaire:
Enregistrer un commentaire