Chapter 13Cleanup Time

Image

In Chapter 12 you created the beginnings of your text-based adventure game. While very incomplete, players can launch your game and move around by making selections. The code works, but you’re probably already seeing ways to improve it. That ongoing improvement process is the subject of this chapter and the next.

Optimizing Your Code

As we’ve previously discussed, before you start coding, you plan your application. The planning is critical, and the more you plan, the easier it’ll be to actually write your code. But, even with the best planning, once you start coding, you are inevitably going to discover ways to improve ...

Get Captain Code: Unleash Your Coding Superpower with Python 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.