# help with this exercise

#1

// Destroy the mines!
// Use say to call out the range to the mines.
// Use division to calculate the range.

var enemy = hero.findNearestEnemy();
var distanceToEnemy = hero.distanceTo(enemy);
// Say first Range: distanceToEnemy divided by 3

hero.say(“Fire!”);
// Say second range: distanceToEnemy divided by 1.5

hero.say(“Fire!”);

// Say these things for motivation. Really. Trust us.
hero.say(“Woo hoo!”);
hero.say(“Here we go!”);
hero.say(“Charge!!”);

// Now, use a while-true loop to attack the enemies.
while(true) {
hero.attack(enemy);
}

#2

What level is this? Please name the level you are working on and any errors that you are receiving. Also, because you didn’t post your code correctly using the </> button, we can’t see the structure of the code. From now on, please post your code from the game using the </> button. There are many people here able and willing to help, but we need some basic information. Help us help you. Thanks.

#3

is the exercise or level 36 long range division.
in the backwoods forest.
Do not know how to solve this exercise

#4

You haven’t asked any questions either – we aren’t just going to tell you the solution. Is there a specific question you have about this level?