Skip to content

itsdoruk/python-cgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Conway's Game of Life

Description

Conway's Game of Life is a cellular automaton simulation that demonstrates how simple rules can lead to complex behaviors. Cells on a grid live, die, or reproduce based on their neighbors.

Rules

  • Automatic cell spawning every 10 seconds
  • User interaction to add or remove cells
  • Visual representation of alive (red) and dead (gray) cells

Dependencies

  • Pygame
  • NumPy

Getting Started

  1. Install Python: Ensure you have Python installed.

  2. Clone the repository:

    git clone https://github.com/itsdoruk/python-cgl.git
    cd python-cgl
  3. Install dependencies:

    pip install pygame numpy
  4. Run the simulation:

    python main.py

Controls

  • R: Randomize the grid
  • Z: Add a cell
  • X: Remove a cell
  • Arrow keys: Adjust frame rate

About

Automated Conway's Game of Life in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages