EH | Swift Playgrounds 1

Func collect() {

moveForward()

collectGem()

}

Func turnRight() {

turnLeft()

turnLeft()

turnLeft()

}

collectGem()

collect()

collect()

turnRight()

collect()

collect()

turnRight()

collect()

collect()

turnRight()

collect()

turnRight()

collect()

Leave a Reply

Your email address will not be published. Required fields are marked *