Mind the trap. Help ME!


#1

I cant figure out this level this is my code

while True:
    flag = hero.findFlag()
    enemy = hero.findNearestEnemy()
    
    if flag:
        # Pick up the flag.
        hero.pickUpFlag(flag)
        hero.say("I should pick up the flag.")
    elif enemy:
        # Only attack if the enemy distance is < 10 meters
        if self.distanceTo(enemy) < 10:
            hero.attack(enemy)

please Help!

#2

can you be a little more specific


#3

It says i ran out of time


#4

the code looks fine you just need to put the flags in the right place


#5

try faster boots Jet 531


#6

where do i put them HELP ME!!!


#7

ok one sec Jet531. I will check your code


#8

place the flag near the ogres like close to the middle of their circle


#9

This wuld only work if you have the right armour


#10

i meant to say would


#11

did you pass it Jet531


#12

I just needed the right armor thank you Andevar000


#13

you are welcome Jet531