Added log

This commit is contained in:
C9Glax 2022-11-13 15:03:35 +01:00
parent 23bab6a593
commit 246ba9d182

View File

@ -17,4 +17,5 @@ do
n2 = graph[graph.Keys.ElementAt(r.Next(0, graph.Count - 1))]; n2 = graph[graph.Keys.ElementAt(r.Next(0, graph.Count - 1))];
_route = Astar.FindPath(ref graph, n1, n2, logger); _route = Astar.FindPath(ref graph, n1, n2, logger);
} while (!_route.routeFound); } while (!_route.routeFound);
logger.Log(LogLevel.INFO, "Press Enter to find new path.");
} while (Console.ReadKey().Key.Equals(ConsoleKey.Enter)); } while (Console.ReadKey().Key.Equals(ConsoleKey.Enter));