FREE DOWNLOAD OPEN BOOKS

Invent Your Own Computer Games with Python

Invent Your Own Computer Games with Python

A beginner's guide to computer programming in Python

by Al Sweigart


DOWNLOAD EBOOK READ ONLINE SHARE BOOK QR CODE

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).

Report an issue

Table of Contents

Chapter 1
Installing Python
1
Chapter 2
The Interactive Shell
6
Chapter 3
Writing Programs
14
Chapter 4
Guess the Number
24
Chapter 5
Jokes
41
Chapter 6
Dragon Realm
46
Chapter 7
Using the Debugger
62
Chapter 8
Flow Charts
75
Chapter 9
Hangman
88
Chapter 9½
Extending Hangman
117
Chapter 10
Tic Tac Toe
125
Chapter 11
Bagels
157
Chapter 12
Cartesian Coordinates
171
Chapter 13
Sonar Treasure Hunt
179
Chapter 14
Caesar Cipher
207
Chapter 15
Reversi
222
Chapter 16
Reversi AI Simulation
258
Chapter 17
Graphics and Animation
274
Chapter 18
Collision Detection and Keyboard/Mouse Input
300
Chapter 19
Sounds and Images
319
Chapter 20
Dodger
329

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

by Al Sweigart

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...

Hacking Secret Ciphers with Python
Hacking Secret Ciphers with Python

by Al Sweigart

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...

Programming for Computations - Python
Programming for Computations - Python

by Svein Linge, Hans Petter Langtangen

This book presents computer programming as a key method for solving mathematical problems. This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapte...

Programming for Computations - Python
Programming for Computations - Python

by Svein Linge, Hans Petter Langtangen

This book presents computer programming as a key method for solving mathematical problems. There are two versions of the book, one for MATLAB and one for Python. The book was inspired by the Springer book TCSE 6: A Primer on Scientific Programming with Python (by Langtangen), but the style is more accessible and concise, in keeping with the needs o...

Pro TBB
Pro TBB

by Michael Voss, Rafael  Asenjo, James Reinders

This book is a modern guide for all C++ programmers to learn Threading Building Blocks (TBB). Written by TBB and parallel programming experts, this book reflects their collective decades of experience in developing and teaching parallel programming with TBB, offering their insights in an approachable manner. Throughout the book the authors present ...

The SysAdmin Handbook
The SysAdmin Handbook

by Various

Over the past two years, Simple-Talk has published articles on a variety of SysAdmin topics, from Exchange to Virtualization, and including everything from Powershell to Unified Messaging. We have brought the best of these articles together to form The SysAdmin Handbook. With over fifty articles packed into this book, it will be an essential refere...