TopColors and Random NumbersMore Conditionals

More Conditionals

  1. Our first attempt at writing Pong. Unfortunately, the paddle doesn't stay in the boundaries.

    Click on PongUnbounded to show the example. (We do not yet make the code for the ball available.)

  2. Our second attempt at writing Pong. This time the paddle stays in the boundaries.

    Click on PongPaddleBounded to show the example.


TopColors and Random NumbersMore Conditionals