値を増やす@コードを学ぼう2
//値を増やす@コードを学ぼう2 var gemCounter = 0 while !isBlocked { while !isBlocked { if isOnGem { collectGem() gemCounter += 1 } moveForward() } turnRight() }
//値を増やす@コードを学ぼう2 var gemCounter = 0 while !isBlocked { while !isBlocked { if isOnGem { collectGem() gemCounter += 1 } moveForward() } turnRight() }