【代码】创建新函数

前言

关卡攻略

源代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
func turnRight() {
turnLeft()
turnLeft()
turnLeft()
}
moveForward()
turnRight()
moveForward()
turnRight()
moveForward()
moveForward()
turnRight()
moveForward()
moveForward()
moveForward()
moveForward()
turnRight()
moveForward()
toggleSwitch()

完成