Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[SOLVED] Brittle Morale(help)


Here is my code. What’s wrong?

1 Like

Please explain more about what is happening when you run your code. Please send a screenshot of the whole page also. Not just the code. Also any errors that come up would be helpful.



Thank you for replying.
Here is the whole page.

1 Like

I believe your issue is that you did not define on line 10 which is = strongestHealth

1 Like

Thank you for replying.
How do I have to define it?
I don’t know that.

1 Like

So in your code, you know how you defined strongestHealth to be zero and enemyIndex to be zero. You need to figure out what should be defined to and the define it. That should work. If you need any more help. Feel free to continue posting on this topic or directly message me! I will be happy to help :smile:

1 Like

It works!
Thank you!


You are welcome! As I said feel free to dm me if you need help with any other levels



My code says it has no errors but my hero just stands there. What do you think is wrong?


Oh, wait i figured it out, i was writing the enemyIndex variable wrong…:neutral_face: