Hunting Party coding help

Okay, It looks like you have a very different strategy than what the level wants you to do. Try using a while loop and command your friends to attack an enemy if there is one. If not, try moving them forward. It should look something like this:

while True:
    friends = hero.findFriends()
    for friend in friends:
        (Tell them to find an enemy)
        if enemy:
            (command them to attack the enemy)
        else:
            (Command them to move forward)

Hope this helps!
-Grzmot

1 Like