# It seems like the Ogre Chieftain is stealing your gems!
# Use the two artillery cannons for your goals.

while True:
    enemy = hero.findNearestEnemy()
    if enemy:
        enemyPos = enemy.pos.x + " " + enemy.pos.y
        hero.say("Enemy at " + enemyPos)


        
    # Now that you have sweet revenge,
    # why not have your cake and eat it, too?
    # Find the item's position and
    # say it for your artillery to target.
    item = hero.findNearestItem()
    if item:
        itemPos = item.pos.x + " " + item.pos.y
        hero.say("Item at " + itemPos)
       

 

 

 

 

 

 

 

 

Projektuję strony www Lublin na Joomla i WordPress