static void Main(string[] args) { IPlayingStrategy strategy = GetPlayingStrategy(); var players = GetPlayers(); try { var team = new Randomizer(players, strategy).GenerateTeam(); WriteOutput(team); } catch (Exception ex) { Console.WriteLine("System unable to generate team. Try with another set of players."); Console.ReadKey(); } }
public Randomizer(List <Player> players, IPlayingStrategy playingStrategy) { _players = players; _playingStrategy = playingStrategy; }