【代码】正确选取工具

前言

关卡攻略

源代码

1
2
3
4
5
6
7
8
9
10
func turnAndCollectGem() {
moveForward()
turnLeft()
moveForward()
collectGem()
turnRight()
}
while !isBlocked {
turnAndCollectGem()
}

完成