AIMA.Core.Environment.EightPuzzle.MisplacedTilleHeuristicFunction.h C# (CSharp) Method

h() public method

public h ( Object state ) : double
state Object
return double
        public double h(Object state)
        {
            EightPuzzleBoard board = (EightPuzzleBoard)state;
            return getNumberOfMisplacedTiles(board);
        }
MisplacedTilleHeuristicFunction