Skip to content

A simple, interactive cellular automaton simulator built with Python, based on the rules of Conway's Game of Life.

Notifications You must be signed in to change notification settings

KausLol/life-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

This is a python implementation of Conway's game of life, a cellular automaton devised by the British Mathematician John Conway. The game simulates the life and death of cells on a grid according to a set of simple rules.

Rules:

  • Any live cell with fewer than two live neighbors dies (underpopulation).
  • Any live cell with two or three live neighbors lives on to the next generation.
  • Any live cell with more than three live neighbors dies (overpopulation).
  • Any dead cell with exactly three live neighbors becomes a live cell (reproduction).

Controls:

  • Left-click: Toggle the state of a cell (alive or dead).
  • Spacebar: Start or pause the simulation.
  • C key: Clear the grid and pause the simulation.
  • X key: Generate a random population of live cells.

About

A simple, interactive cellular automaton simulator built with Python, based on the rules of Conway's Game of Life.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages