From d7a13e144d8cde6d2f5384d8e1120764b35b20bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kuczy=C5=84ski?= Date: Tue, 28 Apr 2020 21:48:53 +0000 Subject: [PATCH] Zaktualizuj 'route-planning.md' --- route-planning.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/route-planning.md b/route-planning.md index 074e5a9..4d5ffe9 100644 --- a/route-planning.md +++ b/route-planning.md @@ -59,9 +59,7 @@ for(var i = 0; i < neighbors.length; i++){ addToOpenSet(openSet, neighbor); } ``` -- 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;` - oraz jego poprzednika: `neighbor.previous = current;`