Start writing the functions
This commit is contained in:
parent
113dcbaa63
commit
5c3f0fb689
1 changed files with 12 additions and 4 deletions
|
|
@ -135,15 +135,23 @@ class Searcher:
|
||||||
def search(self):
|
def search(self):
|
||||||
print(f"Begin Searching with type {self.searchType}")
|
print(f"Begin Searching with type {self.searchType}")
|
||||||
if self.searchType.lower() == "depth":
|
if self.searchType.lower() == "depth":
|
||||||
print()
|
self.depth_first_search()
|
||||||
elif self.searchType.lower() == "breadth":
|
elif self.searchType.lower() == "breadth":
|
||||||
print()
|
self.breadth_first_search()
|
||||||
elif self.searchType.lower() == "best":
|
elif self.searchType.lower() == "best":
|
||||||
print()
|
self.best_first_search()
|
||||||
elif self.searchType.lower() == "a*":
|
elif self.searchType.lower() == "a*":
|
||||||
print()
|
self.a_star_search()
|
||||||
else:
|
else:
|
||||||
print("Invalid searchtype.")
|
print("Invalid searchtype.")
|
||||||
|
def depth_first_search(self):
|
||||||
|
pass
|
||||||
|
def breadth_first_search(self):
|
||||||
|
pass
|
||||||
|
def best_first_search(self):
|
||||||
|
pass
|
||||||
|
def a_star_search(self):
|
||||||
|
pass
|
||||||
|
|
||||||
# 10test.txt map
|
# 10test.txt map
|
||||||
x=Searcher("10test.txt", searchType="DEPTH", verbose=True)
|
x=Searcher("10test.txt", searchType="DEPTH", verbose=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue