AIMA.Core.Environment.EightPuzzle.EightPuzzleGoalTest.isGoalState C# (CSharp) Method

isGoalState() public method

public isGoalState ( Object state ) : bool
state Object
return bool
        public bool isGoalState(Object state)
        {
            EightPuzzleBoard board = (EightPuzzleBoard)state;
            return board.Equals(goal);
        }
    }
EightPuzzleGoalTest