I’m having real difficulty figuring out what is going wrong with the Short-Sighted Burl level. Please see below for my code. No matter what I put, the burl always sees me in the end and comes and kills me. HELP! This is really frustrating.
I suppose I know where the problem is. I fixed one issue for this level. Could you try it again?
If you still have problems with it, then try to clear your cache or/and use the direct link ( https://direct.codecombat.com/play/level/short-sighted-burl )
It worked! Brilliant! So glad to know it wasn’t me going crazy. Thank you very much for sorting that out. My OCD can be happy that I’m don’t have a level that never got done.
Had some trouble with this one mostly because I didn’t know the command to move to a target’s position. If you could add that in to a previous level, I think it’d make it a lot easier.
The solution may work for Python, but nothing seems to be working for JavaScript.
The hero only makes her way back to the starting X (described as “green”, but it looks red to me) with the addition of an ‘else’ half a dozen times (or so), however once she finds coins in the left chest, she tries to make her way straight to the right chest and gets offed by the burl.
Without the ‘else’, she goes to the left chest, then straight across to the right chest, whereupon death-by-burl occurs; she doesn’t go back to the starting X.
Im having some trouble as well. My code seems to work, but the burl just follows me and kills off the first villager it sees, and then naturally I loose.
I move to the left chest first, to find nothing and return.
I move to the right chest after, find a coin, move to the coin. Then my hero pauses for a second, allowing the burl to move in. Then I head back to start and continue walking towards left again. However this is the point where the burl just follows me and kills the first villager in the right path.
# Collect coins and run lest the burl will find you.
# Write the function "checkTakeRun" with one parameter.
# If the item exists, take it.
# Move to the start point (the green mark) whether the item or no.
def checkTakeRun(target):
if target:
hero.moveXY(target.Pos.x, target.Pos.y)
hero.moveXY(40, 12)
# Don't change this code.
while True:
hero.moveXY(16, 56)
item = hero.findNearestItem()
checkTakeRun(item)
hero.moveXY(64, 56)
item = hero.findNearestItem()
checkTakeRun(item)
i dont know what wrong with mine it wont let me do anything