Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- func memory_generateConstPlayfield(
- _ n: Int
- ) -> [Int: Int] {
- var idGroups = [Int: Int]()
- var id = 0
- for gid in stride(from: 0, to: n, by: 1) {
- idGroups[id] = gid
- id += 1
- idGroups[id] = gid
- id += 1
- }
-
- return idGroups
- }
|