implementation.gridpuzzle
Class AbstractHeuristic
java.lang.Object
implementation.gridpuzzle.AbstractHeuristic
- Direct Known Subclasses:
- HeuristicOne, HeuristicThree, HeuristicTwo
public abstract class AbstractHeuristic
- extends java.lang.Object
- Author:
- Eden_06
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHeuristic
public AbstractHeuristic()
isCompatible
public boolean isCompatible(GameGrid current,
GameGrid target)
isCorrect
public boolean isCorrect(GameGrid current,
GameGrid target)
isCorrect
public boolean isCorrect(GameGrid current,
GameGrid target,
int x,
int y)
get
public abstract double get(GameGrid current,
GameGrid target)