This commit is contained in:
barmal4 2021-04-27 21:45:58 +02:00
parent 5a10d66131
commit 39717d8860
2 changed files with 1 additions and 1 deletions

View File

@ -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)