Skip to content

Commit

Permalink
Merge pull request #190 from mengmengisthebest/patch-47
Browse files Browse the repository at this point in the history
Create Using the NOT Operator.swift
  • Loading branch information
hdcola committed Jan 25, 2020
2 parents da4f372 + 3316005 commit 2ac6cee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mengmeng/LearnCode1/Using the NOT Operator.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

for i in 1 ... 4 {
moveForward()
if isOnGem {
collectGem()
}
}
turnRight()
turnRight()
moveForward()
moveForward()
turnRight()
moveForward()
moveForward()
collectGem()

0 comments on commit 2ac6cee

Please sign in to comment.