AESCAPE: THE COMPLETE GAME LISTING

image

This appendix shows the final listing for the Escape game. You can use it as a reference to see where to place particular functions and sections, or read through it if you want to see the whole listing in one place. This listing doesn’t include the temporary sections you wrote while building the game, such as the EXPLORER section. It just contains the code that is in the final game.

Remember that you can also download the escape.py listing and read it in IDLE, which lets you search it by pressing CTRL-F.

I’ve changed PLAYER_NAME to “Captain” in this listing. When you’re building or customizing the game, you can ...

Get Mission 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.