We can’t see the structure since you didn’t post your code correctly. From now on please paste the code from the game using the </> button so it is formatted properly. Help us help you.
You redefine secret as secretr. All this does is rename the variable, secret. Why?
Also, you are constantly redefining the variable, number. This can be confusing. Why not have a separate variable for each wizard?
Obviously, there’s a lot missing from that code and you’ll have to fill in the blanks, but you should at least see how to use a different variable for each wizard. This should be less confusing as each computation has a different name so they’re easier to keep track of.
Also, I know the directions/comments say to use modulo 4 for Simonyi’s number but I had to use “/” (divide) to pass.
This level wont let me pass even when my code is correct and when i submit the wizards numbers change
This 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)
hero.say(erz)
# Divide 'Erzsebet's number by 4 to get 'Simonyi's number.
# Go to 'Simonyi' and tell him his number.
hero.moveXY(30, 39)
erz = las + -2.75
hero.say(erz)
# Multiply 'Simonyi's number by 'Laszlo's to get 'Agata's number.
# Go to 'Agata' and tell her her number.
hero.moveXY(43, 26)
erz = las + 17.5
hero.say(erz)
# 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)
hero.say(erz)
# Divide 'Erzsebet's number by 4 to get 'Simonyi's number.
# Go to 'Simonyi' and tell him his number.
# Multiply 'Simonyi's number by 'Laszlo's to get 'Agata's number.
# Go to 'Agata' and tell her her 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)
hero.say(erz)
# Divide 'Erzsebet's number by 4 to get 'Simonyi's number.
# Go to 'Simonyi' and tell him his number.
sim = erz/4
hero.moveXY(30, 39)
hero.say("sim")
# Multiply 'Simonyi's number by 'Laszlo's to get 'Agata's number.
# Go to 'Agata' and tell her her number.
aga = sim * las
hero.moveXY(43, 26)
hero.say("aga")