Skip to content

Commit d13a57b

Browse files
authored
Update AttackingPairsHeuristic.java
1 parent 12b9a02 commit d13a57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aima-core/src/main/java/aima/core/environment/nqueens/AttackingPairsHeuristic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
public class AttackingPairsHeuristic implements HeuristicFunction {
1212

13-
public int h(Object state) {
13+
public double h(Object state) {
1414
NQueensBoard board = (NQueensBoard) state;
1515
return board.getNumberOfAttackingPairs();
1616
}

0 commit comments

Comments
 (0)