Zaktualizuj 'route-planning.md'

This commit is contained in:
Aleksandra Jonas 2020-04-28 23:46:23 +00:00
parent 472deeb0d4
commit 49890a16c5

View File

@ -120,7 +120,7 @@ Obliczamy g — koszt przejścia od pola początkowego do pola końcowego, zgodn
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.hscore(y, koniec) self.f_score[y] = self.g_score[y] + self.h_score(y, koniec)
``` ```