Skip to content

Instantly share code, notes, and snippets.

@TheMuellenator
Last active February 15, 2025 08:49
Show Gist options
  • Save TheMuellenator/a15238bb2a2ec48298d21dd5c9748fae to your computer and use it in GitHub Desktop.
Save TheMuellenator/a15238bb2a2ec48298d21dd5c9748fae to your computer and use it in GitHub Desktop.
iOS repl.it - Functions 1 Challenge Solution
print("Starting map")
start()
//4 steps right and 5 steps down.
right()
right()
right()
right()
down()
down()
down()
down()
down()
//Don't change the code below this line.
print("Final map")
visualise();
@abrahammella
Copy link

func moveTheFox(){
  for moves in 1...5{
    if moves != 5{
      right()
    }
    down()
  }
}

moveTheFox()

@pbsi-00
Copy link

pbsi-00 commented Jan 31, 2025

@ERaff83 Follow the instruction as ZiZasaurus's mention, it should work by adding compile = ["swiftc", "-o", "main", "main.swift", "game.swift"] on the hidden .replit config file.

Screen Shot 2024-02-05 at 12 49 45 PM

This is what fixed my issue as well. Able to run the code now.

image

@AmgadMagdyHalim
Copy link

Uploading Screenshot 2025-02-15 at 11.46.24 AM.png…

@AmgadMagdyHalim
Copy link

Screenshot 2025-02-15 at 11 46 24 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment