Question: where did the shogun live during the edo period
Answer: Samurai , craftsmen and merchants lived in the cities that were built around the daimyōs ' castles , each restricted to their own quarter .