We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e278e5d commit 0850239Copy full SHA for 0850239
search.py
@@ -497,7 +497,6 @@ def h(self, state):
497
"""Return the heuristic value for a given state. Heuristic function used is
498
h(n) = number of misplaced tiles."""
499
num_misplaced_tiles = 0
500
-
501
for row in len(state):
502
for column in len(row):
503
if state[row][col]!=self.goal[row][column]:
0 commit comments