[SOLVED FEB 4, 2021] The Wizard's Door Help Needed

Hi, I have been on this level for at least 2 years and I have yet to figure this out can someone help me? Here is my code.

# Move to Laszlo and get his secret number.
hero.moveXY(30, 13)
las = hero.findNearestFriend().getSecret()

# Add 7 to Laszlo's number to get Erzsebet's number.
# Move to Erzsebet and say her magic number.
erz = las + 7
hero.moveXY(17, 26)

# Divide Erzsebet's number by 4 to get Simonyi's number.
sim = erz / 4
hero.moveXY(30, 39)
# Go to Simonyi and tell him his number.
# Multiply Simonyi's number by Laszlo's to get Agata's number.
aga = sim / 7
hero.moveXY(43, 26)
# Go to Agata and tell her her number.

Welcome back. I hope you still your way around

1 Like

By the last line, you need to do aga = sim * las
Because it says you need to multiply simonyis number by Laszlos number. And last, you need to do hero.say(aga) instead of hero.say(las)


Thank you so so much!


Congrats on beating the level! :partying_face:

1 Like

He already did that, @JoPro_8000

1 Like

Sorry, my coco discourse was not updating and so I did not see that :smile:


This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.