Prior to the advent of gunpowder, in pitched battles how far away were opposing armies?

by 46Romeo
8BallTiger

Since entire armies weren't comprised of archers it was hand to hand combat.