Class EightPuzzle
java.lang.Object
topics.branchandbound.util.BranchAndBound
topics.branchandbound.EightPuzzle
-
Field Summary
Fields inherited from class BranchAndBound
bestNode, ds, pruneLimit, rootNode -
Constructor Summary
ConstructorsConstructorDescriptionEightPuzzle(topics.branchandbound.HeuristicType heuristicType, int[] board) Constructor for EightPuzzle objects -
Method Summary
Methods inherited from class BranchAndBound
branchAndBound, getBestNode, getRootNode, printSolutionTrace
-
Constructor Details
-
EightPuzzle
public EightPuzzle(topics.branchandbound.HeuristicType heuristicType, int[] board) Constructor for EightPuzzle objects- Parameters:
heuristicType- Type of the heuristic used to solve the problem - Manhattan or WrongPlaceboard- Representation of the board for playing the EightPuzzle
-