Player actions, playable cards

This commit is contained in:
Christoph Hagen
2021-12-06 11:43:30 +01:00
parent 50a35ece03
commit 20d1ce24da
13 changed files with 675 additions and 447 deletions

View File

@@ -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) }
}
}