Class PuzzleState
- java.lang.Object
-
- net.runelite.client.plugins.puzzlesolver.solver.PuzzleState
-
public class PuzzleState extends Object
-
-
Constructor Summary
Constructors Constructor Description PuzzleState(int[] pieces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PuzzleState>
computeMoves()
int
getEmptyPiece()
int
getHeuristicValue(Heuristic heuristic)
PuzzleState
getParent()
int
getPiece(int x, int y)
boolean
hasPieces(int[] pieces)
PuzzleState
swap(int x1, int y1, int x2, int y2)
-
-
-
Method Detail
-
computeMoves
public List<PuzzleState> computeMoves()
-
getParent
public PuzzleState getParent()
-
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)
-
-