puzzle
Class SquarePuzzle
java.lang.Object
|
+--puzzle.SquarePuzzle
- public class SquarePuzzle
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
height
public int height
width
public int width
tile
public int[][] tile
location
public int[] location
SquarePuzzle
public SquarePuzzle(int h,
int w)
pad
public java.lang.String pad(java.lang.String s,
int newsize)
randomizePosition
public void randomizePosition()
orderPosition
public void orderPosition()
isSolved
public boolean isSolved()
slidePiece
public boolean slidePiece(int i,
int j)
main
public static void main(java.lang.String[] args)