Browse Source

update

main
fdai4616 2 years ago
parent
commit
b041971467
  1. 7
      src/main/java/PingPong/CollisionChecker.java

7
src/main/java/PingPong/CollisionChecker.java

@ -0,0 +1,7 @@
package PingPong;
public class CollisionChecker {
public Boolean didTouchTopOrBottomEdge(Integer ballYCoordinate, Integer maxHeight) {
return ballYCoordinate <= 0 || ballYCoordinate >= maxHeight;
}
}
Loading…
Cancel
Save