Invent Your Own Computer Games with Python

A beginner's guide to computer programming in Python

by Al Sweigart

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

Invent Your Own Computer Games with Python teaches you how to program in the Python language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the examples. Games include Guess the Number, Hangman, Tic Tac Toe, and Reversi. This book also has an introduction to making games with 2D graphics using the Pygame framework.

Programming isn't hard. But it is hard to find learning materials that teach you to do interesting things with programming. Other computer books go over many topics most newbie coders don't need. This book will teach you how to program your own computer games. You'll learn a useful skill and have fun games to show for it!

This book is for:
- Complete beginners who want to teach themselves computer programming, even if they have no previous experience programming.
- Kids and teenagers who want to learn programming by creating games.
- Adults and teachers who wish to teach others programming.
- Anyone, young or old, who wants to learn how to program by learning a professional programming language.

This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download Invent Your Own Computer Games with Python ebook for free in PDF format (3.2 MB).

Table of Contents

Chapter 1
Installing Python
Chapter 2
The Interactive Shell
Chapter 3
Writing Programs
Chapter 4
Guess the Number
Chapter 5
Jokes
Chapter 6
Dragon Realm
Chapter 7
Using the Debugger
Chapter 8
Flow Charts
Chapter 9
Hangman
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
Reversi AI Simulation
Chapter 17
Graphics and Animation
Chapter 18
Collision Detection and Keyboard/Mouse Input
Chapter 19
Sounds and Images
Chapter 20
Dodger

Book Details

Subject
Computer Science
Publisher
CreateSpace
Published
2015
Pages
367
Edition
3
Language
English
ISBN13 Digital
9781503212305
ISBN10 Digital
1503212300
PDF Size
3.2 MB
License
CC BY-NC-SA

Book Hashtags

Related Books

Making Games with Python & Pygame
Making Games with Python & Pygame covers the Pygame library with the source code for 11 games. Making Games was written as a sequel for the same age range as Invent with Python. Once you have an understanding of the basics of Python programming, you can now expand your abilities using the Pygame library to make games with graphics, animation, a...
Program Arcade Games
Learn and use Python and PyGame to design and build cool arcade games. In Program Arcade Games: With Python and PyGame, 4th Edition, Dr. Paul Vincent Craven teaches you how to create fun and simple quiz games; integrate and start using graphics; animate graphics; integrate and use game controllers; add sound and bit-mapped graphics; and build grid-...
Programming Computer Vision with Python
If you want a basic understanding of computer vision's underlying theory and algorithms, this hands-on introduction is the ideal place to start. You'll learn techniques for object recognition, 3D reconstruction, stereo imaging, augmented reality, and other computer vision applications as you follow clear examples written in Python. Programming C...
Raspberry Pi Beginner's Guide
Fully updated for Raspberry Pi 400, Raspberry Pi 4, and the latest software, this 252-page official Raspberry Pi book is crammed with projects and beginner's guides containing all the information you need to get started using your new computer! Learn how to set up your Raspberry Pi, install an operating system, and start using it. Follow step-by...
Hacking Secret Ciphers with Python
There are many books that teach beginners how to write secret messages using ciphers. There are a couple books that teach beginners how to hack ciphers. As far as I can tell, there are no books to teach beginners how to write programs to hack ciphers. This book fills that gap. This book is for complete beginners who do not know anything about en...
Retro Gaming with Raspberry Pi
This open book shows you how to set up a Raspberry Pi to play classic games, and a whole lot more. Build your own portable console, full-size arcade cabinet, and pinball machine with our step-by-step guides. And learn how to program your own games, using Python and Pygame Zero. - Set up your Raspberry Pi for retro gaming - Emulate classic computers...