A simple implementation of John Conway's game of life