Node() is not a list anymore

This commit is contained in:
Stefan Harmuth 2021-12-13 07:44:21 +01:00
parent 0b8a477184
commit e16c21b3bb

View File

@ -235,7 +235,7 @@ class Grid:
targetDist = neighbour.getDistanceTo(pos_to, DistanceAlgorithm.MANHATTAN, includeDiagonal)
neighbourNode = Node(
targetDist + neighbourDist + currentNode.h_cost,
currentNode[2] + neighbourDist,
currentNode.h_cost + neighbourDist,
currentCoord
)