Zaktualizuj 'Traktorek/Tractor.py'
This commit is contained in:
parent
8e31384da8
commit
f6185a655f
@ -116,7 +116,7 @@ class Tractor(object):
|
|||||||
if tentative_is_better == True:
|
if tentative_is_better == True:
|
||||||
self.came_from[y] = x
|
self.came_from[y] = x
|
||||||
self.g_score[y] = tentative_g_score
|
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")
|
print("failure")
|
||||||
|
|
||||||
def reconstruct_path(self, came_from, current):
|
def reconstruct_path(self, came_from, current):
|
||||||
|
Loading…
Reference in New Issue
Block a user