Creating games is a fun and educational aspect of computer programming. This page gives some examples of how games and related activities are used in our curriculum.
A simple programming exercise from a Java course: you can click on this to stop the animation. This is an applet that runs on you computer, programmed in Java. This requires some understanding of the physics of elastic collisions, and some familiarity with the use of the Swing library for Java. the animation here is done with a Timer object, that updates the screen every 20 milliseconds.
You can click on this to stop the animation.