Coper meadows, running out f time[SOLVED]

Hey All,

I’m hoping I’m missing something obvious here. I keep running out of time on the level. and I’m not sure what I’m doing wrong. This is my code:

“while True:
flag = hero.findFlag()
if flag:
pass # pass is a placeholder, it has no effect.
# Pick up the flag.
hero.pickUpFlag(flag)
else:
# Automatically move to the nearest item you see.
item = hero.findNearestItem()
if item:
position = item.pos
x = position.x
y = position.y
hero.moveXY(x, y)”

please let me know if I really have missed something. Do I need to add a flag colour?

Thanks

Gytha

1 Like

Nevermind I’m good! I figured out what was going on

4 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.