Skip to content

Commit 6b23403

Browse files
committed
V1.1.1
1 parent ac2c1b9 commit 6b23403

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

AISearchAlgorithm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,13 @@ def searchHillClimbing(self, initialState, GoalState, spaceGraph=[]):
452452
"""
453453
# Step 1
454454
currentState = deepcopy(initialState)
455-
explored = [] # We don't use this in hillClimbing. it is for not getting error
455+
explored = [] # We don't use this in hillClimbing. it is for not getting error and avoid coding more
456456
counter = 0
457457

458458
# Step 2 - loop
459459
while currentState != GoalState:
460460
if counter == 1000 and self.autoFinish:
461-
print("\nunfortunately we couldn't find answere after 5000-th round.\n")
461+
print("\nunfortunately we couldn't find answer after 5000-th round.\n")
462462
break
463463

464464
# Step 3
@@ -500,7 +500,7 @@ def random8PuzzleCreator(self):
500500
# Done successfully
501501
"""
502502
we want a list, consist of three list that
503-
each list consists three value
503+
each list has three value
504504
505505
"""
506506
states = [[1, 2, 3], [4, 5, 6], [7, 8, " "]]

0 commit comments

Comments
 (0)