Hey there! Could you elaborate on the problem?
For example what happens when you run the code?
When does it stop working? Or possible errors that’re shown?
after testing the code myself, it seems to be working, so I’d guess the problem’s simply on how to tackle this level. If i am not mistaken I had those gloves that give access to the chain-lightning spell and used it whenever it was ready on the closest enemy.
You could try to focus the archers first though and after that, once all your soldiers’re dead, try to kite(lure) the enemy around your archers so that the enemy hero attacks less, moves more and your archers are able to shoot at him.
There’re probably quite a lot of possibilities to tackle this level so let your imagination run free
Another idea would be to look if you can get an upgrade to your equipment (new items) that give access to more/new spells!
Bon, here’s how I did it with the dark brown lady (different heroes will need different codes):
Use Flags Don’t Equip Strong Weapons, the heavier you weapon the easier your boys get crushed. Make your health as low as you can so you’ll defeat the clone faster. Just avoid getting hit. Kill with Chain Lightning, you can buy a certain glove I think. This does 120 damage.
Wait for your boys to kill the rest. Wobble around avoiding the arrows. Attack right after picking up the flag.
The rules regarding solutions for this discourse are actually located here, if I’m not mistaken.
Second: In case advice, or information on how one solved it himself (without actual code) is considered an actual solution, please also flag my post further above(or let me know so i will flag it myself), as i did more or less the same, thank you.
@MonsterByMistake’s post doesn’t strike me as a solution. He isn’t posting completed code to a challenge, they are just suggestions for completing the level. Even with those hints there are still a lot of steps that need to be taken before you can arrive at the solution.
Bon without debating too intensely…if you believe figuring levels out is an essential part of coding and no spoiler can be given, delete the post. I don’t mind at all.
But if you think CodeCombat is just a way to help you understand code concepts, and solving puzzles aren’t important for this purpose, it makes sense to leave it here, for those who need to move on.
This is a solution with knight. I think I found an easier way to play beat this level after many trails and errors. Trick is to equip your hero with the highest level armor and use the sword with cleave, or a low damage weapon. (maybe not even)
I find that if you prioritize your target with archers first, then scout, then ogre, then clone hero; you will soak up the damage behind the enemy line (since they always target closest). Then you proceed to still be a tank and have your archers wipe out everything else.
while the clone hero will have lots of armor, I find that since your weapon is low damage, the clone can’t hurt your side too much and will eventually die from arrows.