How do I figure out this level? Every time I try using Either/Or, a bug warning pops up. Every time I complete it and submit it, it goes wrong.
Here is my code:
# Get two secret true/false values from the wizard.
# Check the guide for notes on how to write logical expressions.
hero.moveXY(14, 24)
secretA = hero.findNearestFriend().getSecretA()
secretB = hero.findNearestFriend().getSecretB()
# If BOTH secretA and secretB are true, take the high path; otherwise, take the low path.
secretC = secretA and secretB
if secretA is False:
hero.moveXY(20, 15)
else:
hero.moveXY(20, 33)
if secretB is False:
hero.moveXY(26, 24)
hero.moveXY(32, 15)
else:
hero.moveXY(26, 24)
hero.moveXY(32, 33)
# If EITHER secretA or secretB is true, take the high path.
If (secretA or secretB):
if secretC is True:
hero.moveXY(32, 33)
else:
# If secretB is NOT true, take the high path.
hero.moveXY(50, 24)