Conway's Game of Life Simulation with Python Turtle (Tutorial Available)

preview_player
Показать описание
Conway's Game of Life is 0-player game designed by John Horton Conway in 1970. Each cell has two states: dead (black) or alive (white or empty). At the next generation a cell may change state according to the following rules:
1. If a cell with fewer than two or more than three live neighbors dies because of underpopulation or overpopulation.
2. If a live cell has two or three live neighbors, the cell survives to the next generation.
3. If a dead cell has exactly three live neighbors, it becomes alive.

On a n*n grid, pick about 1/7 of the cells randomly as live cells and start the Conway's Game of Life.

#python #turtle #tutorial #gameoflife
Рекомендации по теме
Комментарии
Автор

Thx for the tutorial, saved my life XD

BigTheodas
Автор

is there any way to make the cells able to be activated by clicking them and pausing the grid

Mano
Автор

it doesn't work for me. The program is launching and instantly crashes. Is there any suggestions?

barbat
visit shbcf.ru