My Solution to this problem

No clue if this is the best way to do it but:

{
    if (searchCenter == endWaypoint)
    {
        return path;
    }
    else
    {
        LoadBlocks();
        ColorStartAndEnd();
        BreadthFirstSearch();
        CreatePath();
        return path;
    }

}

Really happy that it worked!

Cheers,
Jack

2 Likes

Great job with the solution! :100:

Privacy & Terms