Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

The Final Kithmaze help


#64

Well, why don’t you do move: hero.moveDown(2).


#65

My character goes back and walks into the wall:

while True:
    
    
    
    hero.moveRight()
    hero.moveUp()
    enemy = hero.findNearestEnemy()
    hero.attack(enemy)
    hero.moveDown(2)
    



#66

Have you tried experimenting with different movements yourself?


#67

Yes, Chaboi_3000, I did try that. I tried to spilt the movements between two whiletrue loops, but it didn’t work.


#68

First. You do not have a loop to begin your code. Also one hero.moveRight() statement and one hero.moveUp() statement is not nearly enough to complete the level. Also you are forgetting and if statement in your code. Look at your code and the level. There are a lot more hero.moveDIRECTION()'s that u need in your code. You are really close tho.


#69

Thank you Luke10. That helps to know I’m close. And thanks for the advice.


#70

You are welcome. You can post here again or message me if you need more help. Ill be happy to!