Click to view the other books

Source Code

Download

Zip file of source code for all programs.

Chapter 2, Pygame Basics
blankpygame.py
drawing.py
catanimation.py [graphics files]
Chapter 3, Memory Puzzle
memorypuzzle.py
memorypuzzle_obfuscated.py
Chapter 4, Slide Puzzle
slidepuzzle.py
Chapter 5, Simulate
simulate.py [graphics files]
Chapter 6, Wormy
wormy.py
Chapter 7, Tetromino
tetromino.py [graphics files]
Chapter 8, Squirrel Eat Squirrel
squirrel.py [graphics files]
Chapter 9, Star Pusher
starpusher.py [graphics files]
Chapter 10, Four Extra Games
flippy.py [graphics files]
inkspill.py [graphics files]
fourinarow.py [graphics files]
gemgem.py [graphics files]

Copy and Paste

You can also select the text of the source code below, and copy & paste the code into IDLE.

(Click on the text field, then press Ctrl-C to copy.)