Update A*.py

This commit is contained in:
Sohan Rudra 2017-10-03 21:10:34 +05:30 committed by GitHub
parent 9ba6426aad
commit 271cc48a2b

View File

@ -13,7 +13,7 @@ heuristic = [[9, 8, 7, 6, 5, 4],
[5, 4, 3, 2, 1, 0]]''' [5, 4, 3, 2, 1, 0]]'''
init = [0, 0] init = [0, 0]
goal = [len(grid)-1, len(grid[0])-1] goal = [len(grid)-1, len(grid[0])-1] #all coordinates are given in format [y,x]
cost = 1 cost = 1
#the cost map which pushes the path closer to the goal #the cost map which pushes the path closer to the goal