This book teaches you how to make graphical computer
games in the Python programming language using the Pygame library. It
is targeted at the intermediate programmer.
The book features the source code to 11 games. Each
chapter focuses on a single game program, explaining how different
parts of the code work. The games
are clones of classics such as Nibbles, Tetris, Simon, Bejeweled,
Othello, Ink Spill, Connect Four, Flood It, and others. The programs
are less than
600 lines long.
The book and the programs are open source, and are
available under a Creative Commons Attribution-Noncommercial-Share
Python Module of the Week (PyMOTW) is a series of blog
posts written by Doug Hellmann. It was started as a way to build the
habit of writing something on a regular basis. The focus of the series
is building a set of example code for the modules in the Python
PyMOTW is a good source of documentation for Python
PyMOTW includes a command line program, motw, to make it
easier to access the examples while you are developing.
This work is made available under the terms of the
Creative Commons Attribution-NonCommercial Share-alike 3.0 license.
This book is about the fundamentals
of data structures and algorithms - the basic elements from which large
and complex software artifacts are built. To develop a solid
understanding of a data structure requires three things:
Learn how the information is arranged
in the memory of the computer
Become familar with the algorithms
for manipulating the information contained in the data structure
Understand the performance characteristics of the
data structure so that when called upon to select a suitable data
for a particular application
This book also illustrates object-oriented design and
it promotes the use of common, object-oriented design patterns.
The algorithms and data structures in the book
are presented in the Python programming language.
Virtually all the data structures are presented in the context
of a single class hierarchy.