Help! how do u do this?!?!
Please post your code and tell us what exactly you are struggling with, so we can help you.
oh, i just figured it out,
i need help``
hero.moveXY(18, 20)
secret = hero.findNearestFriend().getSecret()
number = secret / 4
Follow Zsofia’s instructions to get the magic number!
Move to Mihaly and say his magic number.
hero.moveXY(30, 15)
hero.say(number)
Move to Beata and say her magic number.
hero.moveXY(42, 20)
hero.say(number / 4)
number = number - number / 5
Move to Sandor and say his magic number.
hero.moveXY(38, 37)
hero.say(number)
Hi, please format your code:
Thanks
Danny
hero.moveXY(18, 20)
secret = hero.findNearestFriend().getSecret()
number = secret / 4
Follow Zsofia’s instructions to get the magic number!
Move to Mihaly and say his magic number.
hero.moveXY(30, 15)
hero.say(number)
Move to Beata and say her magic number.
hero.moveXY(42, 20)
hero.say(number / 4)
number = number - number / 5
Move to Sandor and say his magic number.
hero.moveXY(38, 37)
hero.say(number)
# Move to 'Zsofia' and get the secret number from her.
hero.moveXY(18, 20)
zso = hero.findNearestFriend().getSecret()
# Divide 'Zsofia's number by 4 to get 'Mihaly's number.
# Move to 'Mihaly' and say his magic number.
mih = zso / 4
hero.moveXY(30, 15)
hero.say(mih)
# Divide 'Mihaly's number by 5 to get 'Beata's number
# Move to 'Beata' and say her magic number.
bea = mih/5
hero.moveXY(42, 20)
hero.say(bea)
# Subtract 'Beata's number from 'Mihaly's to get Sandor's number.
# Move to 'Sandor' and say his magic number.
san = bea - mih
hero.moveXY(38, 37)
hero.say(san)
Hi, please don’t ask for help in two locations. The same people are everywhere on the forum. Posting two posts clutters the forum and won’t help you at all.
Thanks
Danny
1 Like
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.