Wise Attack

# Do not step on fire trap!
hero.moveUp (2);
hero.attack ( "Door A")
hero.moveUp ()
hero.moveUp ()
Enemy = hero.findNearestEnemy ()
hero.attack (Enemy)
hero.attack (Enemy)
# some ogre powerful than others!
# Ogre can only beat easily deal with.
# Attack the door by name, and findNearestEnemy ogre attack.
hero.moveDown (. 3)
hero.moveRight (2)
hero.moveUp (2)
hero.attack ( "Door B")
hero.moveRight (2)
hero.attack ( "Door C")
hero.moveRight (. 3)
Hero. moveUp (2)
# after run away (moved mark x).
= hero.findNearestEnemy Enemy ()
hero.attack (Enemy)
hero.attack (Enemy)
Enemy = hero.findNearestEnemy ()
hero.attack (Enemy)
hero.attack (Enemy)
hero.moveUp ()
hero.moveLeft()
hero.moveDown(5)
hero.moveLeft(4)



Guess you like

Origin www.cnblogs.com/littlehb/p/11502904.html