private static IAttackable CreateKing() { var defenders = new List <IDefender>(); var kingName = Console.ReadLine(); var king = new King(kingName, defenders); var royalGuards = Console.ReadLine().Split(); foreach (var royalGuard in royalGuards) { king.AddDefender(new RoyalGuard(royalGuard)); } var footmens = Console.ReadLine().Split(); foreach (var footmen in footmens) { king.AddDefender(new Footman(footmen)); } return(king); }