Backwoods Standoff feedback

I can’t pass with the following Python code. The enemy didn’t scared away when the hero said something. What’s wrong?

while True:
    if hero.isReady("cleave"):
        hero.cleave(hero.findNearestEnemy())
    else:
        hero.say("Boo!")
1 Like

Hi, you’ll want to press the code Restart button to get an updated version of the instructions.

1 Like

I replaced hero.say with hero.attack and the problem is resolved. Thank you!

1 Like

i didn’t use the “say” command

1 Like

I seem to be having the same problem as others. My original code, or others I’ve tried that people have posted, all keep failing. User is charzart.

2 Likes

Could you post your current failed code?

2 Likes

I went back and ran the same code again and it worked now. Thanks anyway.

1 Like

It was okay, but despite having the proper code, I think, I had to buy items with more health w/ gems that I got automatically to get by. It’s okay because I didn’t have to buy anything to win, but still annoying. I spent a long ass time trying to figure it out xD

I can beat it w/ this python code

while True:
enemy = hero.findNearestEnemy()
if hero.isReady(“cleave”) :
hero.cleave(enemy)
else:
hero.attack(enemy)

hi my code is true
look my code:

while True:
enemy = hero.findNearestEnemy()
hero.attack(enemy)
hero.attack(enemy)

Programming Language:Python

while True:
enemy = hero.findNearestEnemy()
# Use an if-statement with isReady to check “cleave”:
ready = hero.isReady(“cleave”)
hero.attack(enemy)
hero.cleave(enemy)

# Attack the nearest ogre!

my code is broken it says ran out of time help

[quote=“crappynoodles123, post:51, topic:6388, full:true”]
while True:

enemy = hero.findNearestEnemy()

Use an if-statement with isReady to check “cleave”:

ready = hero.isReady(“cleave”)

hero.attack(enemy)

hero.cleave(enemy)

Attack the nearest ogre!

my code is broken it says ran out of time help

sorry for the capitals i copyd it so its broken

it is really hard i can not do it:face_with_symbols::angry::rage: