My guess at the Challenge

Challenge

Not sure if I got it right, but thought I would give it a try. About to head back to the video to see how I did.
My Guess at making the code stop if the start and endpoints are the same.
void Pathfind()
{
queue.Enqueue(startWaypoint);
while(queue.Count > 0)
{
var searchCenter = queue.Dequeue();
print("Searching from: " + searchCenter);
}
if(startWaypoint == endWaypoint)
{
print(“Start and End are the same Point!!”);
return;
}

}

Privacy & Terms