Some Update and Save before making dangerous changes

This commit is contained in:
Noah
2021-10-10 21:30:47 +02:00
parent 68fea2258b
commit 81594ae84c
5 changed files with 2 additions and 1261 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

+1 -3
View File
@@ -30,9 +30,7 @@ public class Draw extends JPanel {
currentGrid = new boolean[xSize][ySize];
for (int x = 0; x < xSize; x++) {
for (int y = 0; y < ySize; y++) {
currentGrid[x][y] = grid[x][y];
}
if (ySize >= 0) System.arraycopy(grid[x], 0, currentGrid[x], 0, ySize);
}
}
+1 -1
View File
@@ -167,7 +167,7 @@ public class Control {
}
// public void checkN(Cell[][] arr, Cell[][] futureGen, int columns, int rows) {
// public void checkN(Boolean[][] arr, Boolean[][] futureGen, int columns, int rows) {
// ArrayList<Thread> threads = new ArrayList<>();
// final int NUM_OF_THREADS = 8; //Or can be passed as an argument
// for (int tid = 0; tid < NUM_OF_THREADS; tid++) {