【代码】满足条件时向上爬

前言

关卡攻略

源代码

1
2
3
4
5
6
7
8
for i in 1 ... 16 {
if isOnGem {
collectGem()
turnLeft()
} else {
moveForward()
}
}

完成

</