Customers who viewed this item also viewed
Buy new:
-48% $20.75$20.75
FREE delivery Monday, February 9 on orders shipped by Amazon over $35
Advertisement
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Like New
$14.80$14.80
FREE delivery February 12 - 18
Advertisement
Ships from: bellwetherbooks Sold by: bellwetherbooks
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Invent Your Own Computer Games with Python, 4th Edition Paperback – Illustrated, December 16, 2016
Purchase options and add-ons
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 work through each game, you’ll build a solid foundation in Python and an understanding of computer science fundamentals.
What new game will you create with the power of Python?
The projects in this book are compatible with Python 3.
- Reading age10 years and up
- Print length376 pages
- LanguageEnglish
- Dimensions7.06 x 0.83 x 9.25 inches
- PublisherNo Starch Press
- Publication dateDecember 16, 2016
- ISBN-101593277954
- ISBN-13978-1593277956
Frequently bought together

More items to explore
Python Programming for Beginners: The Complete Python Coding Crash Course - Boost Your Growth with an Innovative Ultra-Fast Learning Framework and Exclusive Hands-On Interactive Exercises & ProjectsPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Feb 9
Coding for Kids: Python: Learn to Code with 50 Awesome Games and ActivitiesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Feb 9
Python Programming Language: a QuickStudy Laminated Reference GuideRobin NixonPamphletFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Feb 9
SQL Programming QuickStudy Laminated Reference GuideNixon RobinPamphletFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Feb 9
Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to ProgrammingPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Feb 9
The Advanced Roblox Coding Book: An Unofficial Guide, Updated Edition: Learn How to Script Games, Code Objects and Settings, and Create Your Own World! (Unofficial Roblox Series)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Feb 9
Customers also bought or read
- The Big Book of Small Python Projects: 81 Easy Practice Programs
Paperback$40.07$40.07FREE delivery Mon, Feb 9 - Object-Oriented Python: Master OOP by Building Games and GUIs
Paperback$34.66$34.66$3.99 delivery Feb 19 - 25 - Impractical Python Projects: Playful Programming Activities to Make You Smarter
Paperback$24.88$24.88Delivery Mon, Feb 9 - Python for Kids, 2nd Edition: A Playful Introduction to Programming
Paperback$17.34$17.34Delivery Feb 17 - 21 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerIntroductory & Beginning Programming
Paperback$27.53$27.53Delivery Mon, Feb 9 - Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code
Paperback$28.19$28.19Delivery Feb 19 - 21 - Coding for Kids: Python: Learn to Code with 50 Awesome Games and Activities
Paperback$10.61$10.61Delivery Mon, Feb 9 - Modeling and Simulation in Python: An Introduction for Scientists and Engineers
Paperback$30.63$30.63$3.99 delivery Feb 27 - Mar 4 - Learn to Code by Solving Problems: A Python Programming Primer
Paperback$23.73$23.73Delivery Feb 18 - 21 - Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners
Paperback$30.86$30.86Delivery Feb 28 - Mar 4 - Doing Math with Python: Use Programming to Explore Algebra, Statistics, Calculus, and More!
Paperback$25.04$25.04$3.99 delivery Feb 19 - 25 - Creative Coding in Python: 30+ Programming Projects in Art, Games, and More
Paperback$14.83$14.83Delivery Mon, Feb 9 - Dive Into Algorithms: A Pythonic Adventure for the Intrepid Beginner
Paperback$31.06$31.06FREE delivery Feb 12 - 19 - Django for Beginners, 5th Edition: Build Modern Web Applications with Python
Paperback$49.99$49.99FREE delivery Mon, Feb 9 - Real-World Python: A Hacker's Guide to Solving Problems with Code
Paperback$27.79$27.79$3.99 delivery Tue, Mar 3 - Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
Paperback$32.60$32.60Delivery Mon, Feb 9 - JavaScript Crash Course: A Hands-On, Project-Based Introduction to Programming
Paperback$30.28$30.28Delivery Mon, Feb 9 - Beginning C++ Game Programming: Learn C++ from scratch by building fun games
Paperback$29.99$29.99Delivery Mon, Feb 9 - Beginning Game Development with Python and Pygame: From Novice to Professional (Beginning From Novice to Professional)
Paperback$38.52$38.52FREE delivery Mon, Feb 9 - Code This Game!: Make Your Game Using Python, Then Break Your Game to Create a New One!
Hardcover$3.64$3.64$6.69 delivery Feb 12 - 18 - Dead Simple Python: Idiomatic Python for the Impatient Programmer
Paperback$47.05$47.05FREE delivery Feb 19 - 23 - Teach Your Kids to Code: A Parent-Friendly Guide to Python Programming
Paperback$13.85$13.85FREE delivery Fri, Feb 13
From the Publisher
About the Author
Al Sweigart is a software developer and teaches programming to kids and adults. He has written several Python books, including Automate the Boring Stuff with Python and Making Games with Python & Pygame.
About the Publisher
No Starch Press has published the finest in geek entertainment since 1994, creating both timely and timeless titles like Python Crash Course, Python for Kids, How Linux Works, and Hacking: The Art of Exploitation. An independent, San Francisco-based publishing company, No Starch Press focuses on a curated list of well-crafted books that make a difference. They publish on many topics, including computer programming, cybersecurity, operating systems, and LEGO. The titles have personality, the authors are passionate experts, and all the content goes through extensive editorial and technical reviews. Long known for its fun, fearless approach to technology, No Starch Press has earned wide support from STEM enthusiasts worldwide.
Editorial Reviews
Review
—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
About the Author
Product details
- Publisher : No Starch Press
- Publication date : December 16, 2016
- Edition : 4th
- Language : English
- Print length : 376 pages
- ISBN-10 : 1593277954
- ISBN-13 : 978-1593277956
- Item Weight : 1.38 pounds
- Reading age : 10 years and up
- Dimensions : 7.06 x 0.83 x 9.25 inches
- Best Sellers Rank: #99,010 in Books (See Top 100 in Books)
- #26 in Game Programming
- #64 in Python Programming
- #76 in Software Development (Books)
- Customer Reviews:
About the author

Al Sweigart is a software developer and tech book author living in Houston. He has written several programming books for beginners, including Automate the Boring Stuff with Python. His books are freely available under a Creative Commons license at his website https://inventwithpython.com.
Related products with free delivery on eligible orders
Customer reviews
- 5 star4 star3 star2 star1 star5 star81%13%6%0%0%81%
- 5 star4 star3 star2 star1 star4 star81%13%6%0%0%13%
- 5 star4 star3 star2 star1 star3 star81%13%6%0%0%6%
- 5 star4 star3 star2 star1 star2 star81%13%6%0%0%0%
- 5 star4 star3 star2 star1 star1 star81%13%6%0%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on November 6, 2025Format: PaperbackVerified PurchaseThis book is a fun way to learn Python programming by teaching the language elements by writing games. From simple statements, using the debugger, designing programs logically with flowcharts, processing a main event loop, to incorporating player-missile graphics and sound, this books provides a good introduction to Python by building games and providing insights into how to build your own games.
- Reviewed in the United States on October 23, 2017Format: PaperbackVerified PurchaseI just finished reading "Invent Your Own Computer Games with Python", and it's my new all-time favorite book for beginners who want to learn how to program. Al's outdone himself with this one. He does an incredible job of teaching the reader how to program in Python from scratch; whenever he comes to a concept that the reader may not be familiar with, he explains it clearly and thoroughly using simple English, and then demonstrates why the concept is useful.
The writing in this book is tight, engaging, entertaining, and just seriously impressive, and the projects are super fun too. I particularly liked the Tic-Tac-Toe project: I thought it was really clever to have the reader implement an AI for one of their games so early on in the book, instead of burying something fun like that in a later chapter.
I don't know if Al's gotten way better at writing over the past few years, or if he's gotten a great editor, or some combination of the two; but whatever the cause, this book really shines. When I read his book "Making Games with Python & Pygame" (published in 2012), I found that he sometimes explained concepts using frustratingly vague language, or introduced them in an order that bothered me, and I also noticed a few typos and bugs in that book's prose and code; I found basically zero such issues in "Invent Your Own Computer Games with Python".
The only main thing I wish he'd change is that he uses mixedCase for his variable and function names, but snake_case is the naming standard in Python programs (documented in PEP8). It's not obvious to me why he prefers mixedCase, and this seems like something that shouldn't have survived to the fourth edition of this book. All in all, though, this is a problem I'm more than willing to overlook, given how otherwise excellent this book is.
From now on, whenever a friend asks me what the best way is of learning to program, I'm going to point them directly to this book. Keep up the great work, Al!
- Reviewed in the United States on October 26, 2025Format: PaperbackVerified PurchaseI love video games im learning blender substance and so much more to better make my own assets but this book helps me with the basics with python games im usually into Unity or Unreal but I can say this has spread a new light on game development using this book
- Reviewed in the United States on October 9, 2017Format: PaperbackVerified PurchaseIts a good book but with a warning. You learn a lot about logic and how to design your code/app. He explains each section of the code to you in detail about what it is doing. Right away he teaches you about debugging and how to use that to figure out how the code works. I'd recommend the book for any adult, I would not recommend giving it to your 10 year old kid as they may lose interest pretty quick. Some of the logic is definitely for someone with a bit of previous in school programming or past history of it. I've done simple coding and took Java in college and I even had to really think and investigate on some of the logic. I'd advise you to go over the book yourself before giving to your child to be able to help explain. Another warning is some of the code is really long, lots of typing. And I'd suggest downloading the source files as the code in the book isn't always correct to begin with so your app may not run.
- Reviewed in the United States on April 28, 2025Format: PaperbackVerified Purchase"Invent Your Own Computer Games with Python" is a truly fantastic book. It goes far beyond just teaching game creation; it lays a solid foundation in so many fundamental programming topics that are essential for writing any kind of software, not just games. You really learn the core concepts needed to succeed.
However, the way it uses game development to teach these concepts is definitely the best part! It makes learning engaging and practical. After working through this book, I genuinely feel equipped to create a huge range of projects, perhaps even anything I can imagine building.
Honestly, this was the best purchase I've made in a long time, and that's saying something because I'm not usually a huge fan of reading! If you want to learn Python and programming in a fun, hands-on way that delivers real results, I highly recommend this book. It truly empowers you to start inventing your own creations.
- Reviewed in the United States on April 24, 2022Format: KindleVerified PurchaseI'm a programmer and I'm teaching Python to my 7-year-old son. I decided to start with this book. It took us over a year to get through all the chapters. My son typed in all the code for each chapter without copying and pasting. After that I read the chapter to him, explaining the code. Then he had fun playing and modifying the games! My son's review is below:
--------------------------
Dear Mr. Sweigart, I really enjoyed the games in your book. There are many ways of modifying the games, like in the dodger game, you can make it so that every time your score gets to 1000, the baddies fall faster by 1. Also, you can change all the images and music to be like Zelda and you can make it 2 players. In Sounds and Images, you can make another food that makes you smaller. I like the improved hangman from chapter 9 because it has different levels of difficulty. Please continue to write more books on this topic.
Top reviews from other countries
-
CorrecaminosReviewed in Spain on July 18, 20174.0 out of 5 stars Bien para empezar
Format: PaperbackVerified PurchaseQuizás hecho en falta más programas con entorno gráfico.Al final trata sobre pygame. Por lo demás muestra los programas de forma didáctica y amena
ChandraReviewed in India on August 12, 20245.0 out of 5 stars Worthy buy
Format: PaperbackVerified PurchaseBought this for my son who is in high school. Good to see him stuck to this book and coding on his own. Python is crucial in today’s context and hopefully his love for code grows further. Partly thanks to this book which teaches via a game-like narration.
StargazerReviewed in the United Kingdom on May 25, 20175.0 out of 5 stars Extremely useful and much much better than all the others I ...
Format: PaperbackVerified PurchaseExtremely useful and much much better than all the others I have tried. It is carefully arranged so that progression and additions to any initial code can be clearly followed - simply by numbering lines of code and using bold print. This makes it SO much better other books that claim to be for beginners. One drawback that it does share with its competitors is the absence of a distinct and obviously different font for code words and lines of code. As printed, the difference is too slight unless concentration is high. However I still rate it very highly.
AnonymousReviewed in Canada on September 7, 20245.0 out of 5 stars Arrived safe and sound!
Format: PaperbackVerified PurchaseGot here on time and in good condition. Looking forward to reading it.
GabrielReviewed in Japan on February 12, 20245.0 out of 5 stars Exceptional Quality
Format: PaperbackVerified PurchaseI had an excellent experience with Rarewaves-USA; they shipped my order promptly and everything arrived in perfect condition.
The book "Invent Your Own Computer Games with Python" is fantastic. The quality of the book exceeded my expectations and I am thrilled with my purchase. It really doesn't get any better than this!
Highly recommend both the seller and the book to anyone interested in programming or game development. Truly a great find!
I had an excellent experience with Rarewaves-USA; they shipped my order promptly and everything arrived in perfect condition.5.0 out of 5 stars
GabrielExceptional Quality
Reviewed in Japan on February 12, 2024
The book "Invent Your Own Computer Games with Python" is fantastic. The quality of the book exceeded my expectations and I am thrilled with my purchase. It really doesn't get any better than this!
Highly recommend both the seller and the book to anyone interested in programming or game development. Truly a great find!
Images in this review















![Computer Networking Bible: [3 in 1] The Complete Crash Course to Effectively Design, Implement and Manage Networks. Including Sections on Security, Performance and Scalability](https://m.media-amazon.com/images/I/41H4YJnxKgL._AC_SR100,100_QL65_.jpg)


