Computer Science Canada game of life |
Author: | zylum [ Mon Oct 25, 2004 7:08 pm ] | ||
Post subject: | game of life | ||
this really simple algorithm was first developed by john conway and what it basically does is simulate cell reproduction in a very simple manner... there are only a few rules which govern this simple organism: For a space that is 'populated': Each cell with one or no neighbors dies, as if by loneliness. Each cell with four or more neighbors dies, as if by overpopulation. Each cell with two or three neighbors survives. For a space that is 'empty' or 'unpopulated' Each cell with three neighbors becomes populated. the patterns these cells form are really interesting to look at. after a while you may notice that the cells go into equillibrium and either stop moving or repeat a simple pattern.
-zylum |
Author: | Catalyst [ Mon Oct 25, 2004 9:22 pm ] |
Post subject: | |
nice work you might want to add a way to edit the initial state, since there are really cool things you can do with this |
Author: | gigaman [ Tue Oct 26, 2004 7:51 am ] |
Post subject: | familiar |
I saw this program in a programming contest once |
Author: | zylum [ Tue Oct 26, 2004 2:55 pm ] |
Post subject: | |
catalyst: yeah is was thinking about that but it was late last night so i didnt do it |
Author: | djlenny_3000 [ Tue Oct 26, 2004 7:20 pm ] |
Post subject: | |
pretty kolllooking, could it be possible to do better resolution but not make the screen smaller, i went through the code, i got most of it ,sort of, and i looked at your variables and i just dont get it, how would you make it so that it had better res |
Author: | zylum [ Tue Oct 26, 2004 10:14 pm ] |
Post subject: | |
if you make the res constant smaller and the maxX and maxY bigger then you'll get a better resolution... i kept it at a low resolution because my computer sucks |
Author: | gigaman [ Wed Oct 27, 2004 11:37 am ] |
Post subject: | |
What is the maximum frame rate? |
Author: | zylum [ Wed Oct 27, 2004 8:22 pm ] |
Post subject: | |
thats up to how fast your computer is... remember, the program does maxX*maxY calculations per cycle plus it has to draw all the cells so it may go a bit slow... really i added the fps in case you wanted to slow things down |
Author: | Mazer [ Wed Oct 27, 2004 8:47 pm ] |
Post subject: | |
Very nice for something with turing. Would've been nice if you could have a bigger resolution and still have a good framerate so it could show some things like gliders and stuff. Still, cool stuff. |
Author: | Velocity [ Thu Dec 22, 2011 9:55 am ] |
Post subject: | RE:game of life |
I dont get it, what is it? |
Author: | Insectoid [ Thu Dec 22, 2011 10:08 am ] |
Post subject: | Re: RE:game of life |
Velocity @ Thu Dec 22, 2011 9:55 am wrote: I dont get it, what is it?
It's 7 years old is what it is. Try reading the description in the first post? |