Esempio n. 1
0
		public GridNode(Grid2D grid, int x, int y, bool isWall)
		{
			Grid = grid;
			X = x;
			Y = y;
			IsWall = isWall;
		}
Esempio n. 2
0
		public static void Main(string[] args)
		{
			var grid = new Grid2D(20, 20, 25, 0, 0, 19, 19);
			var astar = new AStar(grid.Start, grid.Goal);

			var result = astar.Run();

			Console.WriteLine(result);

			var output = grid.Print(astar.GetPath());

			Console.WriteLine(output);

			Console.ReadLine();
		}