Just started playing yesterday...

Why do you put the archers in your front line? Don't they get slaughtered by a charging enemy?

Wouldn't it be best to put them in the rear? Or are they not smart enough to fire over your own units?