Back to Set 2Code Challenge: Paddle and Catch
Difficulty

The Brief
A ball bounces around the window and I move a paddle with
the arrow keys. When I catch it, it should be obvious that
I caught it, and it should count.
Write your requirements list before you write any code. What the player does, what happens on screen, and every question the brief did not answer.
Notes
- Sessions 9, 13 and 14 in one program. Build it in that order and run it after each part.
- The catch has to count once per catch, not once per frame. If your number jumps by twenty, that is session 14.
- The brief says obvious and does not say how. Color, size, a flash — pick one and write it in the list.
- What happens after a catch? Does the ball carry on, bounce off, or restart? The brief does not say.
What Success Looks Like
- The ball bounces off all four walls and never escapes
- The paddle moves with the arrow keys and cannot leave the window
- A catch is visible the moment it happens
- One catch adds exactly one to the count, however long the contact lasts
Hold the paddle against the ball and watch the number. If it climbs, the counter is asking the wrong question.
Submit
Your requirements list and your program folder, named cc-paddle-and-catch.
Commence Challenge