2022年2月18日 星期五

學習程式設計1_08_組合新的動作

Suggest_Code_01

func turnRight(){
    turnLeft()
    turnLeft()
    turnLeft()
}
moveForward()
moveForward()
moveForward()
turnRight()
moveForward()
moveForward()
moveForward()
collectGem()

Result: OK

沒有留言:

學習程式設計1_10_收集、切換、重複

Suggest_Code_01 moveForward() collectGem() moveForward() toggleSwitch() moveForward() turnLeft() moveForward() collectGem() moveForward() to...