CS 1713 Introduction to Computer Science, Spring 2011 Project 1 Comments
This project was graded on a basis of 20 points.
- There should not be any "magic numbers" embedded in your code.
- Do not hard code in constants such as 300 for the x-value of the paddle in the body of the code.
Define a constant called PADDLE_X:
private static final int PADDLE_X = 300;
- handleBall should not assume that the ball has radius 10.
- No -1 or +1 in randomRange.
- Need to use .equals to compare colors.
- Some made the paddle an object, but in this case the paddle should handle
the test for a ball hitting it.
- Test for paddle moving too low should be based on the size of the window,
not the initial size.
You can find a completed version of SemiPongPanel
here.