Swift Playgrounds Level Bug

Discussion in 'iOS 10' started by FrankySavvy, Jun 15, 2016.

  1. FrankySavvy, Jun 15, 2016
    Last edited: Jun 15, 2016

    FrankySavvy macrumors 65816

    Joined:
    Mar 4, 2010
    Location:
    Long Island, NY
    #1
    So I'm playing Swift Playgrounds and I love it, I really feel like I'm learning some swift!. However I get to the level Decision Tree in 'Conditional Code' and when Byte goes to use the toggleSwitch() command it doesn't open the switch and there seems to be a graphical error. Anyone else?

    Here's the code I am using:

    func solverightside() {
    collectGem()
    turnRight()
    moveForward()
    moveForward()
    moveForward()
    turnLeft()
    moveForward()
    collectGem()
    turnLeft()
    turnLeft()
    moveForward()
    turnRight()
    moveForward()
    moveForward()
    moveForward()
    turnRight()
    }
    func solveleftside() {
    toggleSwitch()
    turnLeft()
    moveForward()
    collectGem()
    turnLeft()
    turnLeft()
    moveForward()
    turnLeft()
    }
    for i in 1 ... 5 {
    moveForward()
    if isOnGem {
    solverightside()
    } else if isOnClosedSwitch {
    solveleftside()
    }
    }

    By the way the hint code is wrong, I tried copying that and it's missing a collectgem() command in the solverightside() function

    EDIT; I emailed CRAIG FEDERIGHI think I'll get a response?
     
  2. SvenSvenson macrumors regular

    Joined:
    Jul 17, 2007
    #2
    I have the same problem. The switches don't toggle.
     
  3. lagwagon Suspended

    lagwagon

    Joined:
    Oct 12, 2014
    Location:
    Calgary, Alberta, Canada
    #3
    Send feedback. Swift Playgrounds just like iOS 10, is in beta. (Was even mentioned in the WWDC Keynote that Playgrounds was in beta)
     
  4. gsmornot macrumors 68030

    gsmornot

    Joined:
    Sep 29, 2014
    #4
    I have not made it to his level yet but have been playing through the levels. Love it so far.
     
  5. ConnYoungy macrumors 6502a

    Joined:
    Aug 14, 2010
    #5
    Can you access Swift Playgrounds from the Public Beta? the Feedback app wants me to take a survey about it but is that a generic message to everyone, even if they cant access it yet?
     

Share This Page