forked from s444420/AL-2020
Zaktualizuj 'route-planning.md'
This commit is contained in:
parent
084493b0e9
commit
be2d2b2e33
@ -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;`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user