From 271cc48a2bf7057c1aaf24b792691e2d9e4a881e Mon Sep 17 00:00:00 2001 From: Sohan Rudra Date: Tue, 3 Oct 2017 21:10:34 +0530 Subject: [PATCH] Update A*.py --- Graphs/A*.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Graphs/A*.py b/Graphs/A*.py index 21f346225..2ca9476e5 100644 --- a/Graphs/A*.py +++ b/Graphs/A*.py @@ -13,7 +13,7 @@ heuristic = [[9, 8, 7, 6, 5, 4], [5, 4, 3, 2, 1, 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 #the cost map which pushes the path closer to the goal