public bool IsGoalState( string state ) { int xCoord; if( !int.TryParse( state.Split( ',' )[0], out xCoord ) ) { return false; } int yCoord; if( !int.TryParse( state.Split( ',' )[1], out yCoord ) ) { return false; } var statePoint = new Point( xCoord, yCoord ); return m_rendevous.Equals( statePoint ); }
public GoalTest( Point goal ) { m_rendevous = goal; }