Logical circle please help


#1

can someone help me i dont know how to do the second code


#2

I don’t think I understand. What do you mean by “second code”?


#3

i dont know how to do the second part of the code

# 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()

# If ALL three values are true, take the high path. Otherwise, take the low path.
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.

    right here

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

#4

If ALL three (five) values are true - use AND
If ANY of the values are true -use OR


#5

To find if any values in any given situation are true, use or instead of and, like this:

if secretA or secretB or secretC:
    hero.moveXY(20, 24)
else:
    hero.moveXY(40, 24)

And for the last bit, you want to create a new variable called secretE, which is if secrets A, B, C, and D are true.
Then you’ll beat the level.

Happy to help!


#6

Thanks @juraj_pechac!


#7

thanks so when i do the final i should put


#8

That’s right! :slight_smile:


#9

Thank you soo much it helped me out a lot! :relieved:


#10

You’re welcome!

[Message must be at least 20 characters.]


#11

would you be willing to help me with logical conclusion i mean i got most of it down but i still need a little help


#12

What do you need help with?


#13

nevermind i don’t need help because you already helped me by telling me what to do on logical circle


#14

I’m glad to hear that! :blush:


#15

have you beaten the game or r u still playing?


#16

I’ve been stuck on The Trials in the desert, Summit’s Gate and a few other levels in the mountains for as long as I can remember…

So yeah, I’m still playing.


#17

Mostly I’m just searching around the forum to see if there are any issues I can help fix.


#18

what place are you in like forest dungeon ect.


#19

and also what level are you


#20

I’ve beaten all the non-subscriber levels in the forest and dungeon, but my parents aren’t willing to pay for anything on the Internet except for things like Amazon.