Swift Playgrounds for iOS (iPad)

Discussion in 'iOS Programming' started by AxoNeuron, Sep 29, 2016.

  1. AxoNeuron macrumors 65816

    AxoNeuron

    Joined:
    Apr 22, 2012
    Location:
    The Left Coast
    #1
    Have you guys played around with this app yet? It's incredible. I'm really impressed. I thought it would be a dumb little gimmick designed solely for PR purposes, but it's actually astonishingly good.
     
  2. DrMotownMac macrumors 6502

    DrMotownMac

    Joined:
    Jul 11, 2008
    Location:
    Michigan
    #2
    I have...a little. I tried to run through some of the levels with my 9-year-old daughter, but then, somehow, we got stuck on one of them. And then I realized there's no answer key. And then I searched Google and STILL can't find an answer key or walk-through! Of course, that was about a week ago, but it's pretty annoying when you get stuck on something designed for children and you can't find an answer anywhere. I can't remember what level it was, but it was something with nested loops (or maybe while loops?) and I had to have some sort of command that made the guy keep walking until he hit a dead end, and then turn. Or, maybe I needed a command to make him turn when a turn was available. The hard part was I didn't know what command or condition to use to TEST whether a turn was available. And there are no instructions, no answer keys and the only hint is something obvious and useless, like "You will need to use a nested loop here." Really? No kidding?

    So, if anyone knows of any walkthroughs, that would be very helpful for this dummy (i.e., ME) since I obviously don't have a clue. Thanks!
     
  3. EX1127 macrumors 6502

    EX1127

    Joined:
    May 26, 2009
    Location:
    Louisiana
    #3
    I've been messing around with it. There are answer keys on some but not all. You really only have the steps it gives you up top and it expands over time. Things like turning around require two left turns or later on you get a turn around function.
     
  4. DrMotownMac macrumors 6502

    DrMotownMac

    Joined:
    Jul 11, 2008
    Location:
    Michigan
    #4
    Thank you. Yes, I know about the two left turns thing...amazingly, I figured that one out on my own. I ran into trouble when I had to write a program making the guy walk until faced with a "fork in the road", and then I need some kind of conditional to test whether he should go straight or turn. I knew how to test for picking up a gem, etc., but I didn't know how to test for a dead end vs. a viable turn. Ugh...I'll have to get the app out again and I'll post a much more specific question. Maybe you or someone else here can help me with my specific problem. Right now, I'm sitting at a table across from my wife, supposedly "doing work," so she won't like it if I pull out my iPad and start playing with Playgrounds. Even though I keep trying to explain the potential POSSIBLE future income potential of learning programming, she has this crazy notion I should be working on things that bring me income today. So, to be continued.....
     
  5. Sirious macrumors 65816

    Sirious

    Joined:
    Jan 2, 2013
    Location:
    United Kingdom
    #5
    The app is really good and I can imagine that it will updated with new chapters. As a computer science student, I'm very familiar with coding and it's pretty straightforward. Teaching someone how to code through a game? Genius.
     
  6. AirLeoJ macrumors newbie

    AirLeoJ

    Joined:
    Nov 7, 2009
    #6
    @DrMotownMac,

    Any development on your Swift Playgrounds experience? I've been keeping with it fairly well for about a month now. I'm loving it! I remember being well stumped on the nested while loops for a couple of days, too. It was a doozy! Keep at it, and keep trying different things until it starts to make more sense and start working better.

    Also, don't worry. The puzzles only get harder!
     
  7. DrMotownMac macrumors 6502

    DrMotownMac

    Joined:
    Jul 11, 2008
    Location:
    Michigan
    #7
    Ugh, I got frustrated and gave up! To tell you the truth, I've been swamped with work related stuff lately, and this became more of a distraction for me. But I really would like to get back into it...thanks for the reminder and gentle push! :)
     
  8. PBG4 Dude macrumors 68020

    PBG4 Dude

    Joined:
    Jul 6, 2007
    #8
    If you want to play with sound synthesis, audiokit.io has playgrounds for both Mac and iOS. Plus it includes a complete sound synthesis engine too.
     

Share This Page