diff --git a/src/Main.java b/src/Main.java index 04ab965..739e295 100644 --- a/src/Main.java +++ b/src/Main.java @@ -8,4 +8,4 @@ public class Main { mjf.setVisible(true); } -} +} \ No newline at end of file diff --git a/src/backend/Grid.java b/src/backend/Grid.java index 17ef5ac..8d5cc37 100644 --- a/src/backend/Grid.java +++ b/src/backend/Grid.java @@ -4,7 +4,7 @@ import java.util.Random; /** * The Grid class represents a 2D grid of integers. */ -public class Grid { +public class Grid { private final int width; private final int height; private final int[][] grid; @@ -15,7 +15,7 @@ public class Grid { * * @param width the width of the grid * @param height the height of the grid - */ + */ public Grid(int width, int height) { this.width = width; this.height = height; @@ -63,8 +63,8 @@ public class Grid { public void fillRandom(float randomness) { for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { - int rando = rand.nextInt(100); - int r = (int) (randomness * 100); + int rando = rand.nextInt(100); + int r = (int) (randomness * 100); if (rando < r) { grid[y][x] = 1; } else {