Part 2. Playing with Python

Minecraft, Pac-Man, and Super Mario Brothers are great games, and they were all created by programmers like you. You’ll have to gain more skills to make games like those, but you can create some basic games pretty quickly. All these games have the game player interact with the computer. The computer is programmed with logic: instructions that control how the game reacts to the player’s choices. The game is constantly responding to input from the user, whether it is a button press or a key press.

Games are a good way to learn programming because they combine creativity, fun, and logical thinking into one project. Games are also interactive, requiring the user to make choices and the computer to respond to those choices. ...

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.