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