[Logical Circle] What are five values?


#1

I saw the comment on the code. it says

# If ALL five values are true, take the high path.
# Otherwise, take the low path.

I think there are no fifth value. What do the comment mean?


#2

you are provided with the first three values: SecretA, SecretB, and SecretC. You are then provided with the code from which the value of SecretD is derived. Immediately following, you are directed to write the code to derive SecretE. SecretF is is then derived from a combination of all 5 of the previous secrets (A through E).


#3

What’s is wrong on my code??


# 魔法使いまで行って秘密の価値をゲット.
hero.moveXY(20, 24)
secretA = hero.findNearestFriend().getSecretA()
secretB = hero.findNearestFriend().getSecretB()
secretC = hero.findNearestFriend().getSecretC()

# If ALL three values are true, take the high path.
# Otherwise, take the low path. Save the 4th value.
secretD = secretA and secretB and secretC
if secretD:
    hero.moveXY(30, 33)
else:
    hero.moveXY(30, 15)

# If ANY of the three values are true, take the left path.
# Otherwise, go right. Save the 5th value.
secretE = secretA and secretB and secretC and secretD
if secretE:
    hero.moveXY(20, 24)
else:
    hero.moveXY(40, 24)

# If ALL five values are true, take the high path.
# Otherwise, take the low path.
secretF = secretA and secretB and secretC and secretD and secretE
if secretF:
    hero.moveXY(30, 33)
else:
    hero.moveXY(30, 15)

#4

Carefully read this comment from the code…

# If ANY of the three values are true, take the left path.

Then read your code for defining the variable secretE, two lines below that comment. The way you have it written, ALL three must be true to take the left path.