private GridPoint nextBest() { double best = int.MaxValue; GridPoint bestPt = null; foreach (var node in openSet.Keys) { var score = getFScore(node); if (score < best) { bestPt = node; best = score; } } return(bestPt); }
public List <List <Pin> > PutNewPoint(GridPoint gp, int val) { Values[gp.X][gp.Y].Value = val; return(Values); }