Example #1
0
        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);
        }
Example #2
0
 public List <List <Pin> > PutNewPoint(GridPoint gp, int val)
 {
     Values[gp.X][gp.Y].Value = val;
     return(Values);
 }