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.
# 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?



1 Like

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


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