Skip to content

Commit

Permalink
Fix EightPuzzle class implementation (aimacode#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
SasankYadati committed Feb 13, 2018
1 parent e278e5d commit 0850239
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion search.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ def h(self, state):
"""Return the heuristic value for a given state. Heuristic function used is
h(n) = number of misplaced tiles."""
num_misplaced_tiles = 0

for row in len(state):
for column in len(row):
if state[row][col]!=self.goal[row][column]:
Expand Down

0 comments on commit 0850239

Please sign in to comment.