commit
This commit is contained in:
parent
02e5e9c6c9
commit
8dce30c382
2 changed files with 2 additions and 1 deletions
|
@ -273,6 +273,7 @@ public class AppLaser {
|
||||||
best_nb_mirrors = universe.getNbMirrors();
|
best_nb_mirrors = universe.getNbMirrors();
|
||||||
|
|
||||||
Universe.print(bestGrid, universe_width + 2, universe_height + 2, 2, 2 * universe_width + 10);
|
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) {
|
else if (stack.size() > 0) {
|
||||||
|
|
|
@ -122,7 +122,7 @@ public class Universe {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void changeUniverseDim(int width, int height) {
|
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 i = 1; i < height - 1; i++) {
|
||||||
for (int j = 1; j < width - 1; j++) {
|
for (int j = 1; j < width - 1; j++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue