/// <summary> /// Defines the entry point of the application. /// </summary> /// <param name="args">The arguments.</param> public static void Main(string[] args) { //TestBoardExtensions(); GameInputs input = GameProcessor.GetEnumFromArg(args, 0, GameInputs.Unset); OptimizerId optimizer = GameProcessor.GetEnumFromArg(args, 1, OptimizerId.Schaepi); Stopwatch totalDuration = new Stopwatch(); totalDuration.Start(); if (input == GameInputs.Unset) { GameProcessor.ComputeAll <IGameOptimizer <Game, CacheUsages>, Game, CacheUsages, GameInputs>(optimizer, EnumExtensions.GetValues <GameInputs>().ExceptElts(GameInputs.Unset).ToArray()); } else { GameProcessor.Compute <IGameOptimizer <Game, CacheUsages>, Game, CacheUsages, GameInputs>(optimizer, input); } totalDuration.DisplayTime("Finished !"); Console.ReadLine(); Console.WriteLine("Tap to quit"); Console.ReadLine(); }
/// <summary> /// Defines the entry point of the application. /// </summary> /// <param name="args">The arguments.</param> public static void Main(string[] args) { //TestBoardExtensions(); GameInputs input = GameProcessor.GetEnumFromArg(args, 0, GameInputs.Unset); OptimizerId optimizer = GameProcessor.GetEnumFromArg(args, 1, OptimizerId.Schepi); //OptimizerId optimizer = GameProcessor.GetEnumFromArg(args, 1, OptimizerId.Jon); Stopwatch totalDuration = new Stopwatch(); totalDuration.Start(); if (input == GameInputs.Unset) { GameProcessor.ComputeAll <IGameOptimizer <Game, PizzaSlices>, Game, PizzaSlices, GameInputs>(optimizer); } else { GameProcessor.Compute <IGameOptimizer <Game, PizzaSlices>, Game, PizzaSlices, GameInputs>(input, optimizer); } totalDuration.DisplayTime("Finished !"); Console.ReadLine(); Console.WriteLine("Tap to quit"); Console.ReadLine(); }