Skip to content

Commit a8e6f03

Browse files
committed
Directory Updated
1 parent 6b23403 commit a8e6f03

5 files changed

+12
-9
lines changed

Diff for: 8puzzleProblm.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@
99

1010
Search = AISearchAlgorithm.SearchAlgorithm()
1111

12-
# initialState = [
13-
# [1, 2, 3],
14-
# [7, 8, " "],
15-
# [6, 5, 4]
16-
# ]
17-
18-
# astar finds path at 108th state
12+
# easy level at finding answer
1913
initialState = [
2014
[1, 2, 3],
21-
[7, " ", 8],
15+
[7, 8, " "],
2216
[6, 5, 4]
2317
]
2418

19+
# astar finds path at 108th state
20+
# medium level at finding answer
21+
# initialState = [
22+
# [1, 2, 3],
23+
# [7, " ", 8],
24+
# [6, 5, 4]
25+
# ]
26+
2527
# This can not be found easily
28+
# very hard level at finding answer
2629
# initialState = [
2730
# [1, 2, 3],
2831
# [6, " ", 4],

Diff for: AISearchAlgorithm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def searchHillClimbing(self, initialState, GoalState, spaceGraph=[]):
484484
# we are trap into the local Maximum
485485
# now we must have random restart
486486
# we do this by creating a random state
487-
print(currentValue)
487+
print(f"This is current value {currentValue} we didn't find better state.")
488488
print("we are restarting..")
489489
sleep(3)
490490
currentState = self.random8PuzzleCreator()

Diff for: Documentation.pdf

1.1 MB
Binary file not shown.

Diff for: Documentaton.docx

-16.6 KB
Binary file not shown.

Diff for: __pycache__/AISearchAlgorithm.cpython-39.pyc

58 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)