public static void Main(string[] args) { Console.WriteLine("RandomPlayerGenerator executed."); InputParser inputParser = new InputParser(); ResultHandler outputParser = new ResultHandler(); RandomGenerator randomGenerator = new RandomGenerator(); PairCreator pairCreator = new PairCreator(randomGenerator); PlayerCivPairModel model = inputParser.Parse(args[0]); pairCreator.Create(model); string result = outputParser.Parse(model); Console.WriteLine(result); File.AppendAllText(args[1], result); }