Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Once you know how to do input, output, and data calculations, you’re on your way to writing real programs. But the most useful programs have behavior: the ability to respond to conditions.
Although they don’t have human judgment, computers do make simple decisions. That’s what this chapter is about. We’ll start by looking at short programs. By the end of the chapter, you’ll have the tools to write a complete game program!