Using the NOT operator - Swift Playgrounds

preview_player
Показать описание
This is the gameplay video for Swift Playground: Learn to Code 1 - Logical Operators - Using the NOT operator

Swift Playgrounds is an iPad game where you can learn the swift language interactively in a fun and effective way, which is a very good tutorial for both beginners and experts in making iOS mobile games through Xcode for iPhone and iPad.
Рекомендации по теме
Комментарии
Автор

11/12/2020 doesnt work but you can fix it by instead of if isongem you put if blocked

NotBlazey
Автор

ya its not working for me the solution playground gives me doesn't work as well

jakenader
Автор

It works, thanks!
Slightly less version 👇🏼

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

handekursun