Zaktualizuj 'route-planning.md'
This commit is contained in:
parent
472deeb0d4
commit
49890a16c5
@ -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)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user