// 地形を作る@コードを学ぼう2 var heights: [Int] = [7,6,9,2] let allCoordinates = world.allPossibleCoordinates var index = 0 for coordinate in allCoordinates { if index == heights.count { index = 0 } for i in 0...heights[index] { // Place a block. world.place(Block(), at: coordinate) } // Increment the index. index += 1 }