Just to be sure at 10:00 when Gary makes the
if (!reached.ContainsKey(neighbor.coordinates) && isWalkable
{
reached.Add(neighbor.coordinate , neighbor);
frontier.Enqueue(neighbor)
}
does this line of code mean If “reached dictionary” gets the has the key and the value of the neighbor node but has not reached it yet and also isWalkable then apply the parameters mentioned in the if statement?
is this the logic behind the code?