diff --git a/Traktorek/Tractor.py b/Traktorek/Tractor.py index 962a667..07b5c87 100644 --- a/Traktorek/Tractor.py +++ b/Traktorek/Tractor.py @@ -116,7 +116,7 @@ class Tractor(object): if tentative_is_better == True: self.came_from[y] = x self.g_score[y] = tentative_g_score - self.f_score[y] = self.g_score[y] + self._score(y, koniec) + self.f_score[y] = self.g_score[y] + self.h_score(y, koniec) print("failure") def reconstruct_path(self, came_from, current):