diff --git a/src/main/java/Snake/Apple.java b/src/main/java/Snake/Apple.java index 5784760..8e12d44 100644 --- a/src/main/java/Snake/Apple.java +++ b/src/main/java/Snake/Apple.java @@ -21,4 +21,9 @@ public class Apple position.setLocation(x, y); } + public void setPosition(Point newPosition) + { + position.setLocation(newPosition); + } + } \ No newline at end of file diff --git a/target/classes/Snake/Apple.class b/target/classes/Snake/Apple.class index 3d0247d..577e44f 100644 Binary files a/target/classes/Snake/Apple.class and b/target/classes/Snake/Apple.class differ