getPath

getPath

> Functions

Returns the path avoiding obstacles between two cells cell1 and cell2, if it exists, ignoring the cells contained in the array ignoredCells .

The starting cell cell1 is never part of the resulting path. Cell cell2 is part of the resulting path if and only if it is empty.

If no path exists between the two cells, getPath returns null.

Be careful, it is possible that getPath(cell1, cell2) !== getPath(cell2, cell1).

Parameters
Return
Examples
See as well