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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy