[Solved] I’m trying to make a card game. How would I make a deck of cards and then deal them?
You may want to redesign how you define a card: enum Suit: String { case heart, diamond, club, spade } enum Rank: Int { case _1 = 1, _2 = 2, _3 = 3, _4 = 4, _5 = 5, _6 = 6, _7 = 7, _8 = 8, _9 = 9, _10 = 10 … Read more