Invent Your Own Computer Games with Python, 4th Edition
<i>Invent Your Own Computer Games with Python</i> will teach you how to make computer games using the popular Python programming language—even if you’ve never programmed before!<br /><br />Begin by building classic games like Hangman, Guess the Number, and Tic-Tac-Toe, and then work your way up to more advanced games, like a text-based treasure hunting game and an animated collision-dodging game with sound effects. Along the way, you’ll learn key programming and math concepts that will help you take your game programming to the next level.<br /><br />Learn how to:<br />–Combine loops, variables, and flow control statements into real working programs<br />–Choose the right data structures for the job, such as lists, dictionaries, and tuples<br />–Add graphics and animation to your games with the pygame module<br />–Handle keyboard and mouse input<br />–Program simple artificial intelligence so you can play against the computer<br />–Use cryptography to convert text messages into secret code<br />–Debug your programs and find common errors<br /><br />As you work through each game, you’ll build a solid foundation in Python and an understanding of computer science fundamentals.<br /><br />What new game will you create with the power of Python?<br /><br />The projects in this book are compatible with Python 3.