Chapter 5. Raspi’s Cave Adventure
In this chapter, you’ll create a game to learn new programming techniques:
- Drawing flow diagrams to map out complex programs
- Using Boolean operators to check input from users
- Making code for multiple choices using if, elif, and else statements
- Creating and using your own functions to organize code and avoid repeating code
- Nesting if/else statements to create games with complex logic
Like a great book, a game can create an entire imaginary world in your mind. One of the most exciting aspects of games is when you feel like you’re inside the game. This doesn’t require virtual-reality goggles or high-definition graphics. You can create this immersive feeling even in a completely text-based game by connecting ...
Get Hello Raspberry Pi! 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.