Forum Archive

Conway's Game of Life

Sebastian

Hey guys! Just wanted to share a project I started on today. It's called Conway's Game of Life. It's a grid consisting of cells, and the cells can either be dead or alive.

The rules are simple:

1) Any dead cell with exactly three living neighbors will be brought to life.

2) Any living cell with two or three living neighbors will stay alive.

3) Any living cell with less than two living neighbors will die.

4) Any living cell with more than three living neighbors will die.

You can read more about it on Wikipedia

https://gist.github.com/SebastianJarsve/8832970

beer2011

It's fun and Good old.Thanks.(^^

Matthew

In all the years I've been using computers I've seen many variations on Conway's, for some reason I was just mesmerized by yours. I couldn't stop messing with it. Thanks!

Matthew

Sebastian

Thank's guys! Glad you liked it :)

It was as fun to make, as it is to watch how the life develops after each generation.

pavlinb

I have tried yor code, but I received

for c in self.grid.living_cells():
AttributeError: 'MyScene' object has no attribute 'grid'