diff --git a/AppLaser.java b/AppLaser.java index 6039f0d..ccd6258 100644 --- a/AppLaser.java +++ b/AppLaser.java @@ -273,6 +273,7 @@ public class AppLaser { best_nb_mirrors = universe.getNbMirrors(); Universe.print(bestGrid, universe_width + 2, universe_height + 2, 2, 2 * universe_width + 10); + System.out.println("Miroirs: " + best_nb_mirrors + " Cases: " + best_filled_boxes); } } else if (stack.size() > 0) { diff --git a/Universe.java b/Universe.java index 812b346..3a86c87 100644 --- a/Universe.java +++ b/Universe.java @@ -122,7 +122,7 @@ public class Universe { } public void changeUniverseDim(int width, int height) { - int [][] newgrid = new int[width][height]; + int [][] newgrid = new int[height][width]; for (int i = 1; i < height - 1; i++) { for (int j = 1; j < width - 1; j++) {