Skip to content

just a code to generate a Conway's game of life and have fun

Notifications You must be signed in to change notification settings

acleefr/conway-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Conway's Game of Life

This repository contains an implementation of Conway's Game of Life in Python.

Description

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.

Features

  • Random initialization of the grid
  • Visualization of the grid using matplotlib
  • Implementation of the rules of Conway's Game of Life

Requirements

  • Python 3.0 or newer
  • matplotlib library

Installation

  1. Clone this repository to your local machine.
  2. Install the required dependencies using pip:
pip install -r matplotlib
pip install -r numpy

Usage

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.

About

just a code to generate a Conway's game of life and have fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages