Simple python/pygame script to draw a grid and fill its cells. Good starting point for cellular automaton etc.