Invent Your Own Computer Games with Python

Invent Your Own Computer Games with Python

by Al Sweigart
     
 

View All Available Formats & Editions

Invent Your Own Computer Games with Python will show you how to make classic computer games in Python, even if you've never programmed before.

Each chapter introduces a new game as well as step-by-step explanations of how the code works. As you build games like Reversi, Hangman, Tic-Tac-Toe, Dragon Realm, Guess the Number, Jokes, Dodger, Bagels, and Sonar

Overview

Invent Your Own Computer Games with Python will show you how to make classic computer games in Python, even if you've never programmed before.

Each chapter introduces a new game as well as step-by-step explanations of how the code works. As you build games like Reversi, Hangman, Tic-Tac-Toe, Dragon Realm, Guess the Number, Jokes, Dodger, Bagels, and Sonar, you'll learn how programmers turn their game ideas into reality. You'll also find chapters on game refinements like collision detection and input, Cartesian coordinates, artificial intelligence simulation, sounds and images, debuggers, and cryptography, to help you take your game programming to the next level.

Learn how to:

  • Combine loops, variables, input/output, and flow control statements into real working programs
  • Choose the right data structures such as lists, dictionaries, and tuples
  • Debug your programs and find common errors
  • Program simple artificial intelligence to create smarter adversaries
  • Use graphics and animation with Pygame
  • Convert plain text into secret code using cryptography
  • Translate a location on screen into integers your program can identify with Cartesian coordinates
Once you've worked your way through the fun and games, you'll have a solid foundation in Python, an understanding of computer science fundamentals, and the confidence to advance your new game programming skills.

What new game will you create with the power of Python?

The projects in this book are compatible with Python 3.

Product Details

ISBN-13:
9781441413031
Publisher:
CreateSpace Publishing
Publication date:
03/20/2009
Pages:
334
Product dimensions:
8.00(w) x 10.00(h) x 0.70(d)

Meet the Author

Al Sweigart is a professional software developer who teaches programming to kids and adults. His programming tutorials can be found at inventwithpython.com. He is the author of Automate the Boring Stuff with Python and Scratch Programming Playground.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >