diff --git a/src/main/java/Snake/Apple.java b/src/main/java/Snake/Apple.java index 8e12d44..234bffd 100644 --- a/src/main/java/Snake/Apple.java +++ b/src/main/java/Snake/Apple.java @@ -26,4 +26,9 @@ public class Apple position.setLocation(newPosition); } + public Point getPosition() + { + return position; + } + } \ No newline at end of file