Level connection: https://codecombat.163.com/play/level/attack-wisely
Free Trial: https://codecombat.163.com/play
After each door has Ogres-- which one should you choose? Lyman group created by the players.
The default code
Some ogres powerful than others!
Only defeating the ogre can easily deal with.
Upon completion, immediately run away (move x mark).
Overview
When you move, you look at small dot moving on the floor tiles, avoiding the wrong position.
If you do not know the name of the ogre, you can use the method findNearestEnemy glasses to get the ogre and a reference to the variable. When you call findNearestEnemy method, you must store the result in a variable, such as enemy2 (you can name).
When you call findNearestEnemy method, the variable will remember who the enemy is recent, so be sure to see the enemy call it when in the vicinity.
Wise Attack! solution
Raiders made in the official teaching Wars geeks column, the original address is:
https://codecombat.163.com/news/jikezhanji-mingzhidegongji
Geek Wars - learn programming, with play!