CHAPTER 7

image

Back to Looping

9781484217894_unFig07-01.jpg

Games involve a lot of complex loops. This is a challenge chapter to learn how to be an expert with loops. If you can understand the problems in this chapter, by the end of it you can certify yourself as a loop expert.

If becoming a loop expert isn’t your goal, at least make sure you can write out the answers for the first eight problems. That will give you enough knowledge to continue this book. (Besides, being a loop expert never got anyone a date. Except for that guy in the Groundhog Day movie.)

There are video ...

Get Program Arcade Games: With Python and Pygame, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.