Try fixing that and should be better, at least.
hm your is different to mine this is the first part of it idk if I can post it cause it said no solutions but this is just part of one so I’ll delete this if its not allowed
def commandPeasant(peasant, coins):
# Command the peasant to find the nearest of their coins array:
item = peasant.findNearest(coins)
if item:
hero.command(peasant, "move", item.pos)
edit: please tell me if this is not allowed
oh then i really have no idea sorry
edit: wait did you solve it?
Yes. Thanks for the help!
Lydia
your welcome(pretty sure that was my first time helping someone solve it)