SOLVED I can not go up but I add to the yPos and xPos

xPos = 5
yPos = 6
while True:
    # If there's an enemy, attack.
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.attack(enemy)
    # Else, keep moving up and to the right. 
    yPos += 3
    xPos += 3
    pass
    

here’s the URL and
https://codecombat.com/play/level/sarven-road?
I can not reply anymore but thanks I figured it out

2 Likes

You’re increasing the xPos and yPos on each loop, but where do you tell the hero to move?

Jenny

2 Likes

That’s another problem.

1 Like