Player actions, playable cards
This commit is contained in:
@@ -8,4 +8,8 @@ extension Array {
|
||||
}
|
||||
return Array(self[index..<count] + self[0..<index])
|
||||
}
|
||||
|
||||
func sorted<T>(by converting: (Element) -> T) -> [Element] where T: Comparable {
|
||||
sorted { converting($0) < converting($1) }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user