public AStar(GraphBoard board) : base(board) { board.StartNode.Distance = 0; _sortedList = new List <Node>(); _sortedList.AddRange(board.Nodes.Where(x => x.Type != NodeType.Obstacle)); _sortedList.Sort(new AStarNodeComparer(board.GoalNode)); }
protected PathfindingAlgorithm(GraphBoard board) { Board = board; }