Run pattern_tester.py.

This is not a 'game', but a demo of how Pygame can be used to provide visual output.

This example demonstrates how you can create your own modules that handle the Pygame work
in order to allow students to focus on standard programming concepts.

In this example, students work with a 1-dimensional list, and a simplified 'game of life'
scenario.  The basic rules here are that if a 'live' cell has 2 living neighbours, it will
die in the next generation (due to overcrowding).  If it has no neighbours, it will die in
the next generation due to loneliness.  It will only live in the next generation or be born
if there is eactly one living neighbour.  Note: neighbours are to the left & right only.

This emphasizes list concepts nicely.  Evolution rules can be defined however you wish.
Students can experiment and have fun with visual feedback without ever having to worry
about any Pygame concepts.  The output can even be saved as an image, which is much more
interesting than a bunch of text from print statements.

Wow.... is that Sierpinski's triangle???