Game Development Reference
In-Depth Information
Figure 8-9: Adding "Show the board and blanks to the player." to give the player feedback.
That looks good! This flow chart completely maps out everything that can possibly
happen in Hangman, and in what order. Of course this flow chart is just an example-you
won't really need to use it, because you're just using the source code that's given here. But
when you design your own games, a flow chart can help you remember everything you
need to code.
Summary: The Importance of Planning Out the
Game
It may seem like a lot of work to sketch out a flow chart about the program first. After
all, people want to play games, not look at flowcharts! But it is much easier to make
changes and notice problems by thinking about how the program works before writing the
code for it.
If you jump in to write the code first, you may discover problems that require you to
Search WWH ::




Custom Search