Master of Names

Use your new coding powers to target nameless enemies.

https://codecombat.com/play/level/master-of-names

Solution

// Your hero doesn't know the names of these enemies!
// Use the findNearestEnemy method on your new glasses.

// Assign the result of hero.findNearestEnemy() to the variable enemy1:
var en = true;
while(en)
{
    en = hero.findNearestEnemy();
    hero.attack(en);
    hero.attack(en);
}
Points for
time
damage-dealt
Needed items with
attack
findNearestEnemy
This site is in another language version