It seems to be a bug but in the " Thornbush Farm" level, we are completing all the proper steps :
Build a “fire-trap” when you see an ogre.
Don’t blow up any peasants!
But at the end, the mission is not completed and we can’t figure out why?
Can someone help?
Could you post your code please?
Also, please could you post it formatted, by putting three ``` before and after your code.
Thanks
Danny
2 Likes
‘’‘hero.moveXY(43, 50)
top = hero.findNearestEnemy()
if top:
hero.buildXY(“fire-trap”, 43, 50)
hero.moveXY(25, 34)
left = hero.findNearestEnemy()
# Check if left
exists.
hero.buildXY(“fire-trap”, 25,34)
hero.moveXY(43, 20)
hero.buildXY(“fire-trap”, 43, 20)
# Set a variable for the bottom enemy.
hero.moveXY(43, 50)’’’
Thanks Danny.
All goals seems achieved: all ogres killed and no peasants dead!
I cleaned and adapted my code to this and it is still not working:
‘’‘hero.moveXY(43, 50)
top = hero.findNearestEnemy()
if top:
hero.buildXY(“fire-trap”, 43, 50)
hero.moveXY(25, 34)
left = hero.findNearestEnemy()
if left:hero.findNearestEnemy()
hero.buildXY(“fire-trap”, 25,34)
hero.moveXY(43, 20)
bottom = hero.findNearestEnemy()
if bottom:
hero.buildXY(“fire-trap”, 43, 20)
hero.moveXY(43, 50)’’’
You are absolutely right!
We were so excited and also wanted to inform the thread that we have found the solution.
I deleted the message!
Thank you.
2 Likes