diff --git a/src/main/java/Snake/Apple.java b/src/main/java/Snake/Apple.java index 0721a32..7716cbe 100644 --- a/src/main/java/Snake/Apple.java +++ b/src/main/java/Snake/Apple.java @@ -1,7 +1,7 @@ package Snake; import java.awt.Point; - +import java.util.concurrent.ThreadLocalRandom; public class Apple @@ -14,4 +14,11 @@ public class Apple this.position = new Point(0, 0); } + public void selectGridPosition(int gridSize) + { + int x = ThreadLocalRandom.current().nextInt(0, gridSize); + int y = ThreadLocalRandom.current().nextInt(0, gridSize); + + } + } \ No newline at end of file diff --git a/target/classes/Ball.class b/target/classes/Ball.class deleted file mode 100644 index ba843c4..0000000 Binary files a/target/classes/Ball.class and /dev/null differ diff --git a/target/classes/GameFrame.class b/target/classes/GameFrame.class deleted file mode 100644 index 9574541..0000000 Binary files a/target/classes/GameFrame.class and /dev/null differ diff --git a/target/classes/GamePanel.class b/target/classes/GamePanel.class deleted file mode 100644 index 6a9c66b..0000000 Binary files a/target/classes/GamePanel.class and /dev/null differ diff --git a/target/classes/Paddle.class b/target/classes/Paddle.class deleted file mode 100644 index 0843ca5..0000000 Binary files a/target/classes/Paddle.class and /dev/null differ diff --git a/target/classes/Score.class b/target/classes/Score.class deleted file mode 100644 index a5cb72b..0000000 Binary files a/target/classes/Score.class and /dev/null differ