AIMA.Core.Environment.NQueens.AttackingPairsHeuristic.h C# (CSharp) 메소드

h() 공개 메소드

public h ( Object state ) : double
state Object
리턴 double
        public double h(Object state)
        {
            NQueensBoard board = (NQueensBoard)state;
            return board.getNumberOfAttackingPairs();
        }
    }
AttackingPairsHeuristic