From 30a95f14ee03c846622c9291be530b0caa683e33 Mon Sep 17 00:00:00 2001 From: AngryCracker Date: Thu, 8 Feb 2018 00:14:21 +0530 Subject: [PATCH] Updated move dictionary --- search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])):