Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
We know we’ll need classes and methods, but what should they be? To answer that, we need more information about what the game should do.
First, we need to figure out the general flow of the game. Here’s the basic idea:
User starts the game
Game creates three Dot Coms
Game places the three Dot Coms onto a virtual grid
Game play begins
Repeat the following until there are no more Dot Coms:
Game finishes
Give the user a rating based on the number of guesses.
Now we have an idea of the kinds of things the program needs to do. The next step is figuring out what kind of objects we’ll need to do the work. Remember, think like Brad rather than Larry; focus first on the things in the program rather than the procedures.