Known Enemy

Using your first variable to achieve victory.

https://codecombat.com/play/level/known-enemy

Solution

// You can use a variable like a nametag.

var enemy1 = "Kratt";
var enemy2 = "Gert";
var enemy3 = "Ursa";

hero.attack(enemy1);
hero.attack(enemy1);

hero.attack(enemy2);
hero.attack(enemy2);

hero.attack(enemy3);
hero.attack(enemy3);
Points for
time
damage-dealt
Needed items with
attack
This site is in another language version