Exemplo n.º 1
0
 public void Profiling2()
 {
     var greedyBot = new GreedyBot();
     Map map = WellKnownMaps.LoadMap("tests\\performance\\random19_nf_2000");
     while (map.State == CheckResult.Nothing)
     {
         map = map.Move(greedyBot.NextMove(map));
     }
     Console.WriteLine(map.GetScore());
 }
Exemplo n.º 2
0
 public void TestPerformanceOnConcreteMap()
 {
     var map = new Map(Path.Combine(MapsDir, "random20_fl_50.map.txt"));
     var robotMove = RobotMove.Wait;
     var bot = new GreedyBot();
     var botWrapper = new BotWithBestMomentsMemory(bot);
     while (robotMove != RobotMove.Abort && map.State == CheckResult.Nothing)
     {
         robotMove = botWrapper.NextMove(map);
         map = map.Move(robotMove);
         botWrapper.UpdateBestSolution(map);
     }
 }