diff --git a/RouteFinding/05_tests.py b/RouteFinding/05_tests.py index 5fbc049..2e14742 100644 --- a/RouteFinding/05_tests.py +++ b/RouteFinding/05_tests.py @@ -114,14 +114,12 @@ class Searcher: for item in nodeList: if item not in self.open: self.open.insert(0, item) - return None def insert_end(self, nodeList): # forwards "sort" # loop through each element, and apply it to the end of the open list. for item in nodeList: if item not in self.open: self.open.append(item) - return None def insert_ordered(self, nodeList): # sort by the lowest cost after adding all the elements to the open list. # add the nodes to the list @@ -132,11 +130,9 @@ class Searcher: self.open.clear() # replace it with the sorted list by extending the blank list. self.open.extend(sortedList) - return None # (b) Show your program loading in the 30-node sample file. -# s=Searcher("30node.txt") -s=Searcher("samplemap-1.txt") +s=Searcher("30node.txt") # (c) Show you program setting start node=U and end node=T. s.setStartGoal('U','T') # myViz should be a DRDViz instance -> save map to file on disk. diff --git a/RouteFinding/30node.png b/RouteFinding/30node.png index 07c0e6a..2a2d61e 100644 Binary files a/RouteFinding/30node.png and b/RouteFinding/30node.png differ