Description

Book Synopsis
Invent Your Own Computer Games with Python will teach you how to make computer games using the popular Python programming language even if you ve never programmed before! 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. Learn how to: Combine loops, variables, and flow control statements into real working programs Choose the right data structures for the job, such as lists, dictionaries, and tuples Add graphics and animation to your games with the pygame module Handle keyboard and mouse input Program simple artificial intelligence so you can play against the computer Use cryptography to convert text messages into secret code Debug your programs and find common errors As you wo

Trade Review
“Pretty close to the ultimate how-to-learn python book. First, it combines an easy ramp up from expecting you to know virtually nothing to having you try out – and understand – Python. Second, it provides the code, the tools, and the explanations required for you build a number of increasingly sophisticated games and the know-how to branch out to creating games completely on your own.”
—Computerworld

“Many of the games include flowcharts so the reader will better understand the logic needed to complete the game, and I was especially happy to see a few chapters focus on topics not necessary limited to games such as Cartesian coordinates and using the built-in Debugger.”
—GeekDad

“This is an excellent way to learn Python, if you are a kid or not. Little kids can learn with their adult guide, and older kids will eat this book up in an afternoon or two.”
—Greg Laden, National Geographic's ScienceBlogs

“This book is a great entry point for beginning programmers that 'gamifies' coding, allowing readers to immediately apply the concepts covered, rather than teaching basics with little application.”
—School Library Connection

"If games are your thing, this would be the perfect book to learn Python."
—Rajat, @argent_codes

Table of Contents
Chapter 1: The Interactive Shell
Chapter 2: Writing Programs
Chapter 3: Guess the Number
Chapter 4: Jokes
Chapter 5: Dragon Realm
Chapter 6: Using the Debugger
Chapter 7: Designing Hangman with Flowcharts
Chapter 8: Writing the Hangman Code
Chapter 9: Extending Hangman
Chapter 10: Tic-Tac-Toe
Chapter 11: Bagels
Chapter 12: Cartesian Coordinates
Chapter 13: Sonar Treasure Hunt
Chapter 14: Caesar Cipher
Chapter 15: Reversi
Chapter 16: AI Simulation
Chapter 17: Using Pygame and Graphics
Chapter 18: Animating Graphics
Chapter 19: Collision Detection and Input
Chapter 20: Sounds and Images
Chapter 21: Dodger

Invent Your Own Computer Games With Python, 4e

    Product form

    £24.64

    Includes FREE delivery

    RRP £28.99 – you save £4.35 (15%)

    Order before 4pm today for delivery by Wed 1 Jul 2026.

    A Paperback / softback by Al Sweigart

    3 in stock

      Trusted by thousands of customers. See 2,385+ Customer Reviews

      View other formats and editions of Invent Your Own Computer Games With Python, 4e by Al Sweigart

      Publisher: No Starch Press,US
      Publication Date: 16/12/2016
      ISBN13: 9781593277956, 978-1593277956
      ISBN10: 1593277954

      Description

      Book Synopsis
      Invent Your Own Computer Games with Python will teach you how to make computer games using the popular Python programming language even if you ve never programmed before! 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. Learn how to: Combine loops, variables, and flow control statements into real working programs Choose the right data structures for the job, such as lists, dictionaries, and tuples Add graphics and animation to your games with the pygame module Handle keyboard and mouse input Program simple artificial intelligence so you can play against the computer Use cryptography to convert text messages into secret code Debug your programs and find common errors As you wo

      Trade Review
      “Pretty close to the ultimate how-to-learn python book. First, it combines an easy ramp up from expecting you to know virtually nothing to having you try out – and understand – Python. Second, it provides the code, the tools, and the explanations required for you build a number of increasingly sophisticated games and the know-how to branch out to creating games completely on your own.”
      —Computerworld

      “Many of the games include flowcharts so the reader will better understand the logic needed to complete the game, and I was especially happy to see a few chapters focus on topics not necessary limited to games such as Cartesian coordinates and using the built-in Debugger.”
      —GeekDad

      “This is an excellent way to learn Python, if you are a kid or not. Little kids can learn with their adult guide, and older kids will eat this book up in an afternoon or two.”
      —Greg Laden, National Geographic's ScienceBlogs

      “This book is a great entry point for beginning programmers that 'gamifies' coding, allowing readers to immediately apply the concepts covered, rather than teaching basics with little application.”
      —School Library Connection

      "If games are your thing, this would be the perfect book to learn Python."
      —Rajat, @argent_codes

      Table of Contents
      Chapter 1: The Interactive Shell
      Chapter 2: Writing Programs
      Chapter 3: Guess the Number
      Chapter 4: Jokes
      Chapter 5: Dragon Realm
      Chapter 6: Using the Debugger
      Chapter 7: Designing Hangman with Flowcharts
      Chapter 8: Writing the Hangman Code
      Chapter 9: Extending Hangman
      Chapter 10: Tic-Tac-Toe
      Chapter 11: Bagels
      Chapter 12: Cartesian Coordinates
      Chapter 13: Sonar Treasure Hunt
      Chapter 14: Caesar Cipher
      Chapter 15: Reversi
      Chapter 16: AI Simulation
      Chapter 17: Using Pygame and Graphics
      Chapter 18: Animating Graphics
      Chapter 19: Collision Detection and Input
      Chapter 20: Sounds and Images
      Chapter 21: Dodger

      Recently viewed products

      © 2026 Book Curl

        • American Express
        • Apple Pay
        • Diners Club
        • Discover
        • Google Pay
        • Maestro
        • Mastercard
        • PayPal
        • Shop Pay
        • Union Pay
        • Visa

        Login

        Forgot your password?

        Don't have an account yet?
        Create account