Logical Circle - adventurer feedback

I like the concept of these levels, although it is starting to get boring. Well, in any case, practice makes perfect!

Again, as in the previous level, I’m unsure what the last comment means:

# If ALL of the LAST three values are true, take the high path.

I’ve only computed two “secrets”, so I assumed “the last three values” meant secretC together with the previous two computations. I really have no idea whether this assumption is correct. Furthermore, it is unclear whether I should take the opposite (lower) path in case this test fails.

1 Like

Should this comment say “the last two” instead of “the last three”? I tried it this way and passed.

I agree with the above. Furthermore, the logic is flawed here too:

  • A & B & C = True (1st question) is only true when A = B = C = True
  • if this is the case, then A | B | C (2nd question) is always true, because they are all True
  • thus, the 3rd question (if it refers to the last two - and not the last three) will be true if the 1st one is true, so don’t have to care about the 2nd one at all…

Hello, could you help me this the section please

Move to the wizard and get their secret values.

hero.moveXY(20, 24)
secretA = hero.findNearestFriend().getSecretA()
secretB = hero.findNearestFriend().getSecretB()
secretC = hero.findNearestFriend().getSecretC()

I have 3 values but it want to me ‘’ If ALL five values are true, take the high path. Otherwise, take the low path.’'
what is mean all five values are true ?

@almond The five values are:

secretA
secretB
secretC
secretD
secretE

They give us secretD as the 4th value and ask us to create a 5th value secretE

This could be updated to say:

// If any of the first three values are true, take the left path. Otherwise, go right.
// Create a new secret, secretE that stores this result. This will be the 5th value.

.

// If ALL five of the secret values are true, take the high path. Otherwise take the low path.

The idea here is to look at the existing code and comments and notice a pattern. When they were talking about the 3 values and creating secretD they referred to secretA, secretB, and secretC as “all three values”. So when asked again about the “three values” this would infer that we are talking about A,B and C. Though I can see where one could get lost in translation.

1 Like

if secretD is True:
hero.moveXY(30, 33)
else:
hero.moveXY(39, 15)

secretE = hero.findNearestFriend().getSecretE()

# If ALL five values are true, take the high path. Otherwise, take the low path.
if secretA and secretB and secretC and secretD and secretE is True:
     hero.moveXY(40, 24)
else:
    hero.moveXY(20, 24)

I dont know where I was wrong :frowning: , english is not my native language, so sorry

  1. secretE = hero.findNearestFriend().getSecretE()

try

hero.say(secretE)


  1. if you are coding in Python be VERY careful of tab spaces.

    if secretA and secretB and secretC and secretD and secretE is True:
    hero.moveXY(40, 24)
    else:
    hero.moveXY(20, 24)

can be different form

if secretA and secretB and secretC and secretD and secretE is True:
    hero.moveXY(40, 24)
else:
    hero.moveXY(20, 24)

  1. secretE = “If any of the first three values are true”

We need to compute secretE from booleans


  1. if secretE is true, take the left path. Otherwise, go right.

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

< your code >

I dont know where I was wrong :frowning: , english is not my native language, so sorry

No worry, your English is not bad at all. What language do you speak?

1 Like

[please don’t post solutions]

Hello Harry, I speak Turkish and thank you so much for your interest.
Finally:) I complicated everything but anyway I solved.

Hi.
[Please, don’t post solutions]