We are about to switch to a new forum software. Until then we have removed the registration on this forum.
As the title says I'm trying to program "Conways Game Of Life" but the cells don't behave as they should. I can't find my mistake. I hope one of you can find it :)
Seems like the code is too long so I made a pdf: https://drive.google.com/file/d/0B9pKdSOwgbtydjN1aU03TGQtSUk/view?usp=sharing
Answers
Please be more descriptive of what problem you are seeing than "the cells don't behave as they should". What, specifically, are the cells doing that is unexpected?
See also the forum search for lots and lots and lots of examples of working Conway code.
Would be helpful if you included comments in your code.
Do you expect us to retype 7 pages of code in order to debug your program? You'll get better answers if you put it somewhere as text that we can cut and paste.
Your
cells = copiedCells;
(and vice versa) probably isn't doing what you think it's doing. Try replacing that with a method that copies the values of each individual cell.Sorry, I will make my next questions more clear. It's working. Thank you!
https://drive.google.com/file/d/0B9pKdSOwgbtyOFlrMTlVdzJHOW8/view?usp=sharing
but do you understand why?
Yes I do.