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); }
public bool IsGoal(AStar.IState state, AStar.IState goal) { return(state.CompareTo(goal) == 0); }