新しい関数を作る@コードを学ぼう1
//新しい関数を作る@コードを学ぼう1 func turnRight(){ turnLeft() turnLeft() turnLeft() } moveForward() turnLeft() moveForward() turnRight() moveForward() turnRight() moveForward() turnRight() moveForward() turnLeft() moveForward() toggleSwitch()
//新しい関数を作る@コードを学ぼう1 func turnRight(){ turnLeft() turnLeft() turnLeft() } moveForward() turnLeft() moveForward() turnRight() moveForward() turnRight() moveForward() turnRight() moveForward() turnLeft() moveForward() toggleSwitch()