diff --git a/src/main/java/PingPong/CollisionChecker.java b/src/main/java/PingPong/CollisionChecker.java index c2cf1ca..a38b4f8 100644 --- a/src/main/java/PingPong/CollisionChecker.java +++ b/src/main/java/PingPong/CollisionChecker.java @@ -9,4 +9,8 @@ public class CollisionChecker { public Boolean didTouchPaddle(Rectangle ball, Rectangle paddle) { return ball.intersects(paddle); } + + public Boolean didTouchLeftEdge(Integer ballXCoordinate) { + return ballXCoordinate <= 0; + } }