mario-sanz / CA_gameOfLife

Conway's Game of Life using Matplotlib in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conway's Game of Life

Animated Conway's Game of Life using Matplotlib

The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. It is Turing complete and can simulate a universal constructor or any other Turing machine.

About my code

This version of The Game of Life is implemented with the following classical rules:

1. Any dead cell with three live neighbours becomes a live cell.
2. Any live cell with two or three live neighbours lives on to the next generation. Otherwise, it dies.

I have developed it with comments so that everyone with a basic knowledge of Python can follow and understand the code. No previous knowkedge of Cellular Automata is required to understand it.

Stars in GitHub are appreciated!

If you have any further questions or suggestions, don't hesitate to ask me here: Questions and issues

Developer: mario-sanz

About

Conway's Game of Life using Matplotlib in Python

License:MIT License


Languages

Language:Python 100.0%