Upload the last of the Boggle files, start the Route Finding assignment.
This commit is contained in:
parent
29c46717d9
commit
01f18dd14a
5 changed files with 220 additions and 0 deletions
36
RouteFinding/06_tests.py
Normal file
36
RouteFinding/06_tests.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Define Searcher class here.
|
||||
|
||||
# 10test.txt map
|
||||
x=Searcher("10test.txt", searchType="DEPTH", verbose=True)
|
||||
x.setStartGoal('h','k')
|
||||
x.search()
|
||||
|
||||
x=Searcher("10test.txt", searchType="BREADTH", verbose=True)
|
||||
x.setStartGoal('h','k')
|
||||
x.search()
|
||||
|
||||
x=Searcher("10test.txt", searchType="BEST", verbose=True)
|
||||
x.setStartGoal('h','k')
|
||||
x.search()
|
||||
|
||||
x=Searcher("10test.txt", searchType="A*", verbose=True)
|
||||
x.setStartGoal('h','k')
|
||||
x.search()
|
||||
|
||||
# 50test.txt map
|
||||
x=Searcher("50test.txt", searchType="DEPTH", verbose=False)
|
||||
x.setStartGoal('s','c')
|
||||
x.search()
|
||||
|
||||
x=Searcher("50test.txt", searchType="BREADTH", verbose=False)
|
||||
x.setStartGoal('s','c')
|
||||
x.search()
|
||||
|
||||
x=Searcher("50test.txt", searchType="BEST", verbose=False)
|
||||
x.setStartGoal('s','c')
|
||||
x.search()
|
||||
|
||||
x=Searcher("50test.txt", searchType="A*", verbose=False)
|
||||
x.setStartGoal('s','c')
|
||||
x.search()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue