# Follow me on youtube channel Phy Tu
# Help with programming on Python, school math, physics
# https://www.youtube.com/channel/UCP5ycahCEZ24qmRRgNnko5Q
# Protect the peasants from the ogres.
while True:
# Get an array of enemies.
enemies = hero.findEnemies()
# If the array is not empty.
if len(enemies) > 0:
# Attack the first enemy from "enemies" array.
hero.attack(enemies[0])
# Return to the start position.
hero.moveXY(40,20)
pass