Hello there !
Siege of StoneHold is the first complex level you face ! It’s normal to find it hard. Don’t panic ! It’s ok to be defeated several times before you can find a way to victory !
First of all, I think you changed recently your glasses, because you’re not using them right. Your line :
enemy = self.findNearest(enemy)
is wrong. The "findNearest(units) is expecting an array of units. You can find this array of the enemies by changing this line by these two :
enemy = self.findNearest(enemies)
What I did the first time I beat this level is to understand one thing :
Your archers are the key ! Protecting them is far better than killing enemies !
There are many ways to protect them. You’ll see the bunch of the soldiers is protecting the north. Try to protect them from the south. Stay close to them and try to take as little damage as possible. Don’t fight if your archers arn’t close to you. Also, try to heal from time to time by going back to the base.
Oh ! And there are MANY better ways to protect your archers. If you’d like to hear about it, come back in this thread.
flag = this.findFlag();
enemy = this.findNearest(enemies);
Here is my stuff :