Skip to content

Commit 0850239

Browse files
committed
Fix EightPuzzle class implementation (aimacode#710)
1 parent e278e5d commit 0850239

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

search.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ def h(self, state):
497497
"""Return the heuristic value for a given state. Heuristic function used is
498498
h(n) = number of misplaced tiles."""
499499
num_misplaced_tiles = 0
500-
501500
for row in len(state):
502501
for column in len(row):
503502
if state[row][col]!=self.goal[row][column]:

0 commit comments

Comments
 (0)