USA (US Army of the Potomac, 90,000 men under Mcclellan) attacked Confederacy (Cs Army of Northern Virginia, 46,000 men under Lee) in Maryland. The CAA Database of Battles records 11 hours of fighting on a front of 6.4 km, a frontal attack, double envelopment against hasty defense, and that Confederacy held. Losses: USA 12,410 (14%), Confederacy 13,700 (30%).
This plan is generated from those figures. It shows the shape of the battle the database describes: the size and width of the armies, the plan of attack and the outcome. It does not show where the units actually stood.