When trying the following case:
int[][] initial = { {7, 2, 4}, {5, 0, 6}, {8, 3, 1} };
we get a lot of lag and this error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at Node.(Node.java:17)
at Puzzle.solve(Puzzle.java:87)
at Puzzle.main(Puzzle.java:104)
Process finished with exit code 1
When trying the following case:
int[][] initial = { {7, 2, 4}, {5, 0, 6}, {8, 3, 1} };
we get a lot of lag and this error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at Node.(Node.java:17)
at Puzzle.solve(Puzzle.java:87)
at Puzzle.main(Puzzle.java:104)
Process finished with exit code 1