diff --git a/Sources/PlayingCard/Rank.swift b/Sources/PlayingCard/Rank.swift index 9c55f3f..cd37142 100644 --- a/Sources/PlayingCard/Rank.swift +++ b/Sources/PlayingCard/Rank.swift @@ -8,7 +8,7 @@ See http://swift.org/CONTRIBUTORS.txt for Swift project authors */ -public enum Rank: Int { +public enum Rank: Int, CaseIterable { case two = 2 case three, four, five, six, seven, eight, nine, ten case jack, queen, king, ace diff --git a/Sources/PlayingCard/Suit.swift b/Sources/PlayingCard/Suit.swift index baa2803..83ae9bd 100644 --- a/Sources/PlayingCard/Suit.swift +++ b/Sources/PlayingCard/Suit.swift @@ -8,7 +8,7 @@ See http://swift.org/CONTRIBUTORS.txt for Swift project authors */ -public enum Suit: String { +public enum Suit: String, CaseIterable { case spades, hearts, diamonds, clubs }