Ejemplo n.º 1
0
        public static double ComputeHeuristic(AStar.IState state, AStar.IState goalState)
        {
            if (state.CompareTo(goalState) == 0)
            {
                return(0);
            }
            var st = state as State;

            return(st.Node.Heuristic);
        }
Ejemplo n.º 2
0
 public bool IsGoal(AStar.IState state, AStar.IState goal)
 {
     return(state.CompareTo(goal) == 0);
 }