Currently I have this issue while doing the Python version of CodeCombat and can't get past the level. It says that i'm not using level than 10 statements in my code.
Here's a picture: http://puu.sh/lQ7XM/74698bf15b.png
Remove the s from the brackets, because they count as separate statements.
Ah I see I didn't know that was the case. Thank you very much!
your first response worked perfectly. I'm not sure what the significance of this is yet:
while (this.findNearestEnemy() !== null) this.attack(this.findNearestEnemy());
I guess I'm just too new to the language.
I cannot finish the level. I have done the right code based on all the comments and it doesn't allow them to go through the door. I am using js.
Am I missing something?
This level is still not working in js. Am I missing something
Please include your code properly formatted inside of three backticks (`) before and after the code.
Forgot to indent. *This is Python.
It comes up with a problem with the second code but the rest is all good
Please remember to format your code according to the FAQ. As I have explained at various times to other users, it helps us understand the code a little easier. Thanks!
(If you find this helpful, please this post)
Thanks Dude! Helped me so much!!!!
Here's my codewhile True: hero.moveRight() hero.moveUp() hero.moveRight() enemy = hero.findNearestEnemy() hero.attack(enemy) hero.attack(enemy) hero.moveDown(2) hero.moveUp(1)
Please format your code according to the FAQ. It helps understand your code better. It basically helps us help you!
Also, could you give some information on what is going wrong, what the game is saying etc.
(Please this post if it helps!)
sorry I replied so late guys
[redacted, please don't post solutions]
I used this and it worked
won't work... I have to use hero.move instead of self.move
You are the best thanks for the help
It worked thanks!!!!!!!!!!!!!!!!
Hey. I am doing LUA and I can't get pass this level.