Пример #1
0
 private static int F(QueueNode node)
 {
     return(node.PathCost + Math.Abs(node.Pos.X - GOAL));
 }
Пример #2
0
        public override bool Equals(Object obj)
        {
            QueueNode other = (QueueNode)obj;

            return(Pos.X == other.Pos.X && Pos.Y == other.Pos.Y && PathCost == other.PathCost);
        }