Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The tic-tac-toe game developed in Lesson 11 was a simple one. My goal was to show you the basic layout of UI components and event processing. Now you'll learn how to draw and move such objects as ovals, rectangles, and lines in a window. You'll also learn how to process keyboard events. To add a little fun to these subjects, you'll be learning all these things while creating a ping-pong game. This game will have two players: the user and the computer.