2
0
forked from s444420/AL-2020

Zaktualizuj 'route-planning.md'

This commit is contained in:
Tomasz Kuczyński 2020-04-28 21:42:36 +00:00
parent 084493b0e9
commit be2d2b2e33

View File

@ -67,7 +67,9 @@ for(var i = 0; i < neighbors.length; i++){
} }
``` ```
Po przypisaniu kosztu do sąsiada dodajemy jego odległość do celu: `neighbor.heuristic = getDistance(neighbor, goalField);`, Po przypisaniu kosztu do sąsiada dodajemy jego odległość do celu:
`neighbor.heuristic = getDistance(neighbor, goalField);`,
??????????: `neighbor.f = neighbor.gScore + neighbor.heuristic;` ??????????: `neighbor.f = neighbor.gScore + neighbor.heuristic;`