static void Main(string[] args) { Team a = new Team("Мурзилки", new Coach("Шевченко")); Team b = new Team("Пупсики", new Coach("Блохин")); a.AddFootballer(new Footballer("Петров", 22)); a.AddFootballer(new Footballer("Семенов", 19)); a.AddFootballer(new Footballer("Иванов", 25)); a.AddFootballer(new Footballer("Алёшкин", 39)); a.AddFootballer(new Footballer("Щербаков", 30)); b.AddFootballer(new Footballer("Ярмоленко", 30)); b.AddFootballer(new Footballer("Коноплянка", 29)); b.AddFootballer(new Footballer("Тайсон", 35)); b.AddFootballer(new Footballer("Марлос", 20)); b.AddFootballer(new Footballer("Девич", 45)); Referee r = new Referee("Киркоров"); Game g = new Game(a, b, r); g.Foul += new EventHandler <GameEventArgs>(r.HandlerEvents); g.Goal += new EventHandler <GameEventArgs>(r.HandlerEvents); g.StartGame(); g.ResultGame(); Console.WriteLine($"Состав комманды {a.Team_name} :"); a.ListAll().PrintFootballerList(); Console.WriteLine($"Состав комманды {b.Team_name}, кому за 30 :"); b.ListOverThirty().PrintFootballerList(); }