board = new EightPuzzleBoard(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8});
Random r = new Random(System.currentTimeMillis());
for (int i = 0; i < 200 ; i++) {
switch (r.nextInt(4)) {
case 0: board.moveGapUp(); break;
case 1: board.moveGapDown(); break;
case 2: board.moveGapLeft(); break;
case 3: board.moveGapRight(); break;
}
}
}