Skip to content

This is my try to make John Horton Conway's game of life aka Conway's game of life in python in a donut shaped world

Notifications You must be signed in to change notification settings

SrujanHR/conways-game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Conway's Game of Life in a Donut World

Welcome, This is my try to make John Horton Conway's game of life aka Conway's game of life in python in a donut world i.e the corners wrap around themselves i.e the first and last cell (both columnwise and rowwise) are neighbours just like in a donut

Rules of the Game

The game is governed by four simple rules:

  1. Underpopulation: Any live cell with fewer than two live neighbors dies.
  2. Survival: Any live cell with two or three live neighbors survives to the next generation.
  3. Overpopulation: Any live cell with more than three live neighbors dies.
  4. Reproduction: Any dead cell with exactly three live neighbors becomes a live cell.

Dependencies

  • Python 3.11

How to use :

just download this repo and run the Conway's game of life no gui.py

code

Contributing

Contributions are welcome! If you have any ideas for improvements or features, feel free to fork this repository and submit a pull request.

Acknowledgments

Learn More

About

This is my try to make John Horton Conway's game of life aka Conway's game of life in python in a donut shaped world

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages