Skip to content

Commit 271cc48

Browse files
authored
Update A*.py
1 parent 9ba6426 commit 271cc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Graphs/A*.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[5, 4, 3, 2, 1, 0]]'''
1414

1515
init = [0, 0]
16-
goal = [len(grid)-1, len(grid[0])-1]
16+
goal = [len(grid)-1, len(grid[0])-1] #all coordinates are given in format [y,x]
1717
cost = 1
1818

1919
#the cost map which pushes the path closer to the goal

0 commit comments

Comments
 (0)