diff --git a/search.py b/search.py index 1e32d5b8c..9caee609a 100644 --- a/search.py +++ b/search.py @@ -422,7 +422,7 @@ def checkSolvability(self, state): print(check) def getPossibleMoves(self,state,heuristic,goal,moves): - 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 + 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 index = state[0].index(0) possible_moves = [] for i in range(len(move[index])):