Пример #1
0
        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 );
        }
Пример #2
0
 public GoalTest( Point goal )
 {
     m_rendevous = goal;
 }