@ -13,4 +13,8 @@ public class CollisionChecker {
public Boolean didTouchLeftEdge(Integer ballXCoordinate) {
return ballXCoordinate <= 0;
}
public Boolean didTouchRightEdge(Integer ballXCoordinate, Integer maxWidth) {
return ballXCoordinate >= maxWidth;