Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Conway's Game of Life
-
Hey guys! Just wanted to share a <a href="https://gist.github.com/SebastianJarsve/8832970">project</a> 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.<br>
The rules are simple:<br>- Any dead cell with <I>exactly three</I> living neighbors will be brought to life.<br>
- Any living cell with <I>two or three</I> living neighbors will stay alive.<br>
- Any living cell with <I>less than two</I> living neighbors will die.<br>
- Any living cell with <I>more than three</I> living neighbors will die.<br>
You can read more about it on <a href="http://en.wikipedia.org/wiki/Conway's_Game_of_Life">Wikipedia</a>
-
It's fun and Good old.Thanks.(^^
-
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
-
Thank's guys! Glad you liked it :) <br>
It was as fun to make, as it is to watch how the life develops after each generation. -
I have tried yor code, but I received
for c in self.grid.living_cells(): AttributeError: 'MyScene' object has no attribute 'grid'