Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

HELP ME plez help

#1

backwoods standoff i cannot beat it
i got to this how i need help hero.cleave(enemy)
enemy = hero.findNearestEnemy()
hero.attack(enemy)
if enemy:
enemy = hero.findNearestEnemy()
if enemy:

    hero.attack(enemy)
    enemy = hero.findNearestEnemy()
    hero.attack(enemy)
    hero.attack(enemy)
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.attack(enemy)
        hero.attack(enemy)
        hero.attack(enemy)
        hero.attack(enemy)
        enemy = hero.findNearestEnemy()
        if enemy:
            hero.cleave(enemy)
            enemy = hero.findNearestEnemy()
            hero.attack(enemy)
            hero.cleave(enemy)
            hero.attack(enemy )
            enemy = hero.findNearestEnemy()
            hero.attack(enemy)
            hero.attack(enemy)
            hero.cleave(enemy)
#2

Post your code so we can see the problem.