# Use a while to loop until you have counted 10 attacks.

attacks = 0
while attacks < 10:
    # Attack the nearest enemy!
    nearest = hero.findNearestEnemy()


    if nearest:
        hero.attack(nearest)
    # Incrementing means to increase by 1.
    # Increment the `attacks` variable.
    attacks += 1

# Kiedy skończysz , wycofaj się do punktu zasadzki.
hero.say("I should retreat!")
hero.moveXY(79, 33)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Projektuję strony www Lublin na Joomla i WordPress