Skip to content

Commit 0390d06

Browse files
ad71norvig
authored andcommitted
Updated move dictionary (#715)
1 parent 685e8d8 commit 0390d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def checkSolvability(self, state):
422422
print(check)
423423

424424
def getPossibleMoves(self,state,heuristic,goal,moves):
425-
move = {0:[1,3], 1:[0,2,4], 2:[1,5], 3:[0,6,4], 4:[1,3,5,7], 5:[2,4,8], 6:[3,7], 7:[6,8], 8:[7,5]} # create a dictionary of moves
425+
move = {0:[1,3], 1:[0,2,4], 2:[1,5], 3:[0,6,4], 4:[1,3,5,7], 5:[2,4,8], 6:[3,7], 7:[4,6,8], 8:[7,5]} # create a dictionary of moves
426426
index = state[0].index(0)
427427
possible_moves = []
428428
for i in range(len(move[index])):

0 commit comments

Comments
 (0)