AIsOfCatan.Program.Main C# (CSharp) Method

Main() static private method

The main entry point for the application.
static private Main ( string args ) : void
args string
return void
        static void Main(string[] args)
        {
            //PerformGameBenchmarking();

            var controller = new GameController();
            var agents = new IAgent[] { new StarterAgent(), new StarterAgent(), new StarterAgent(), new StarterAgent() }; // new HumanAgent()
            int intWinner = controller.StartGame(agents, 10, 0, false, true);

            if (intWinner != -1)
            {
                var winner = agents[intWinner];
                Console.WriteLine("Winner is: " + winner.GetName() + " (" + intWinner + ")");
            }
            else
            {
                Console.WriteLine("It is a draw after 100 rounds");
            }

            Console.WriteLine(controller.GetBoard());
        }