/GameOfLife

A very simple implementation of Conway's Game of Life with Python and Pygame

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

#Game Of Life A very simple implementation of Conway's Game of Life with Python and Pygame

By George Osterweil ##About

Conway's Game of Life is a cellular automaton designed by the British mathematician John Conway. Often called a zero-player game, the 'game' simulates the growth of cells from an initial state by following a very simple set of rules. Each Generation:

  1. Living cells with fewer than two live neighbors die
  2. Living cells with two or three live neighbors live on
  3. Living cells with more than three live neighbors die
  4. Dead cells with exactly three live neighbors become alive

These simple rules can create very intricate patterns. For more information on The Game of Life, see it's Wikipedia page and LifeWiki.

##Running This application depends on Python version 2.7, NumPy version 1.8, and Pygame version 1.9.1

Python Download

[NumPy Download] (http://www.scipy.org/scipylib/download.html)

[PyGame Download] (http://pygame.org/download.shtml)

Once the dependencies have been installed, simply open game_life.py with Python. ##Usage Click on any cell to toggle it from dead to alive or vice versa. Press the space bar to start and pause the simulation.

Liscense

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.