Please I’ve done this code forever please correct me I can’t seem to find anything
here’s what I’ve done
<while True:
pass
hero.moveRight()
hero.moveUp()
hero.moveRight()
hero.moveDown()
bad = hero.findNearestEnemy()
hero.attack(bad)
hero.attack(bad)
hero.moveDown()
hero.moveDown()
hero.moveUp()>
THIS WAS IN PYTHON FOR ALL INFORMATION.
so please give exact answers
abc
3
First, format your code correctly
abc
4
Are you trying to get all the bonuses?
abc
5
Also, to make your code shorter and to get one of the bonuses, you need to put a number. For example,
instead of:
hero.moveDown()
hero.moveDown()
make it:
hero.moveDown(2)
Looked at hints? It helps a lot .
negative, I just kept messing with it
Oh nice, Well try to use hints next time.