IT 관련/스위프트 공부

Learn to Code 1 #006~#010 – Swift Playgrounds 답안지

블린데디 2020. 9. 21. 10:34

Learn to Code 1 #006: Finding and Fixing Bugs, Commands – Swift Playgrounds

Swift Playgrounds
Learn to Code 1
Commands
Finding and Fixing Bugs

Source Code:
moveForward()
moveForward()
turnLeft()
moveForward()
collectGem()
moveForward()
toggleSwitch()

Learn to Code 1 #007: Bug Squash Practice, Commands – Swift Playgrounds

Swift playgrounds
Learn to Code 1
Commands
Bug Squash Practice

Source Code:
moveForward()
turnLeft()
moveForward()
moveForward()
toggleSwitch()
moveForward()
moveForward()
moveForward()
moveForward()
collectGem()



Learn to Code 1 #008: The Shortest Route, Commands – Swift Playgrounds

Swift Playgrounds
Learn to Code 1
Commands
The Shortest Route

Source Code:
turnLeft()
moveForward()
moveForward()
turnLeft()
moveForward()
moveForward()
moveForward()
moveForward()
moveForward()
toggleSwitch()
moveForward()
moveForward()
moveForward()
moveForward()
collectGem()

Learn to Code 1 #009: Introduction, Functions – Swift Playgrounds

Learn to Code 1 #010: Composing a New Behavior, Functions – Swift Playgrounds
Swift Playgrounds
Learn to Code 1
Functions
Composing a New Behavior

Source Code:
moveForward()
moveForward()
moveForward()
turnLeft()
turnLeft()
turnLeft()
moveForward()
moveForward()
moveForward()
collectGem()