|
@@ -292,9 +292,18 @@ def main():
|
|
|
print("###########")
|
|
|
print(*board, sep='\n')
|
|
|
print("##########")
|
|
|
- result = heuristic(board)
|
|
|
+
|
|
|
+ if (algotype == str(0)):
|
|
|
+ result = naive(board)
|
|
|
+ elif (algotype == str(1)):
|
|
|
+ result = forward(board)
|
|
|
+ elif (algotype == str(2)):
|
|
|
+ result = heuristic(board)
|
|
|
+ else:
|
|
|
+ print("No valid algorithm selected. RIP.")
|
|
|
+
|
|
|
print("###########")
|
|
|
print(*result, sep='\n')
|
|
|
print("##########")
|
|
|
|
|
|
-main()
|
|
|
+main()
|