Beispiel #1
0
 def estimate(self):
     result = Graph.calcDistance(self.current, self.target)
     return result
Beispiel #2
0
 def known(self):
     result = self.perviousState.knownCost + Graph.calcDistance(self.perviousState.node, self.current)
     return result