Almost, the recursion is only used when creating new cells, other than that it is all simple iteration.
Basically the 'cell creation' is a shortcut used because I didn't want to start off with a fixed size array of cells.
Each cell operates independently of its neighbours.
Nice to have a taker!
It's a small enough project that you can do it in a day and it is large enough to get some insight into the various ways of solving things with different languages.
I'm really curious what your code will look like and what language you will write it in.
Please let me know when you're done, email in my profile.
Comments
Almost, the recursion is only used when creating new cells, other than that it is all simple iteration.
Basically the 'cell creation' is a shortcut used because I didn't want to start off with a fixed size array of cells.
Each cell operates independently of its neighbours.
Nice to have a taker!
It's a small enough project that you can do it in a day and it is large enough to get some insight into the various ways of solving things with different languages.
I'm really curious what your code will look like and what language you will write it in.
Please let me know when you're done, email in my profile.
Ok, so the main loop is like
And update looks at the values of the neighbors and updates accordingly. Seems straightforward, but I'm sure there will be pitfalls :)I'm going to start in about 4 hours, I have other work to do now.
Yep, you got it.