During the American Civil War the standard formation for both attacking and defending was the line formation. The line allowed the maximum number of soldiers to fire their weapons without hitting their own men. The line formation worked best in open fields. The line could not move well in wooded areas or in rough terrain. Both sides were still using tactics that were used in the American Revolutionary War. During earlier wars including the Napoleonic Wars, single-shot smoothbore muskets were used with fixed bayonets. A line would advance to about from the enemy line and fire in volley (all at the same time). Muskets were not very accurate and by all firing at the same time they were more likely to hit enemy soldiers. After firing their one shot the soldiers would all move the line forward for a bayonet charge.