Class PuzzleState


  • public class PuzzleState
    extends Object
    • Constructor Detail

      • PuzzleState

        public PuzzleState​(int[] pieces)
    • Method Detail

      • hasPieces

        public boolean hasPieces​(int[] pieces)
      • getPiece

        public int getPiece​(int x,
                            int y)
      • getEmptyPiece

        public int getEmptyPiece()
      • getHeuristicValue

        public int getHeuristicValue​(Heuristic heuristic)
      • swap

        public PuzzleState swap​(int x1,
                                int y1,
                                int x2,
                                int y2)