This repository contains an implementation of Conway's Game of Life in Python.
Conway's 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.
- Random initialization of the grid
- Visualization of the grid using matplotlib
- Implementation of the rules of Conway's Game of Life
- Python 3.0 or newer
- matplotlib library
- Clone this repository to your local machine.
- Install the required dependencies using pip:
pip install -r matplotlib
pip install -r numpy
Run the main script conway_game_of_life.py
:
python3 test-1.py
This will start the simulation and display the evolution of the grid using matplotlib.