Class AdvancedHeuristic

java.lang.Object
  extended byAdvancedHeuristic
All Implemented Interfaces:
Heuristic

public class AdvancedHeuristic
extends java.lang.Object
implements Heuristic

This is a template for the class corresponding to your original advanced heuristic. This class is an implementation of the Heuristic interface. After thinking of an original heuristic, you should implement it here, filling in the constructor and the getValue method.


Constructor Summary
AdvancedHeuristic(Puzzle puzzle)
          This is the required constructor, which must be of the given form.
 
Method Summary
 int getValue(State state)
          This method returns the value of the heuristic function at the given state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedHeuristic

public AdvancedHeuristic(Puzzle puzzle)
This is the required constructor, which must be of the given form.

Method Detail

getValue

public int getValue(State state)
This method returns the value of the heuristic function at the given state.

Specified by:
getValue in interface Heuristic