a* impl
This commit is contained in:
parent
5a10d66131
commit
39717d8860
@ -35,7 +35,7 @@ class PathFinder(BfsPathFinder):
|
||||
self.cameFrom[next] = current
|
||||
next.parent = current
|
||||
self.gScore[next] = tentativeGScore
|
||||
self.fScore[next] = next.state.getPoint().distance(startState.getPoint())
|
||||
self.fScore[next] = tentativeGScore + next.state.getPoint().distance(startState.getPoint())
|
||||
if next not in self.openList:
|
||||
self.openList.append(next)
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user