Uses of Class
puzzle.solver.Node

Packages that use Node
Package
Description
Package for solving puzzles.
  • Uses of Node in puzzle.solver

    Methods in puzzle.solver that return types with arguments of type Node
    Modifier and Type
    Method
    Description
    Node.getParent()
    Returns the parent of the node.
    Node.nextChild()
    Creates and returns the next child of the node by applying a legal move to the state represented by the node.
    BreadthFirstSearch.solve(State<T> state)
    Searches for the shortest solution for the puzzle starting from the state provided.
    BreadthFirstSearch.solveAndPrintSolution(State<T> state)
    Searches for the shortest solution for the puzzle starting from the state provided, and it also prints the solution to the standard output.
    Constructors in puzzle.solver with parameters of type Node
    Modifier
    Constructor
    Description
     
    Node(State<T> state, Node<T> parent, T move)
    Creates a Node with a parent node.