Research portable Memory game | Исследовать портируемую игру Память
25개 이상의 토픽을 선택하실 수 없습니다.
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
- }
|