I run out of time cause my peasants keep bumping into each other.
here is my code:
# Your goal is to collect coins / gems. # This level is repeatable. If you win, the difficulty and rewards will increase. # If you fail, you have to wait a day to resubmit. # This level is an optional challenge level. You don't need to beat it to continue the campaign! while True: enemy = hero.findNearestEnemy() friends = hero.findFriends() for friend in friends: item = friend.findNearest(friend.findItems()) hero.command(friend, "move", item.pos) if enemy: hero.attack(enemy)