Out of curiosity, why do you clear the array of counts of live cells every five iterations? And why even have it be an array of ints rather than just a single int?
Ah yes, haven't finished that feature yet. The idea was to track when the game "ends" and no more changes were happening. The idea was to track the last 5 generation states and if they were repeating, stop the game. However, sometimes the game loops over the period of 3+ iterations, so I'll have to think of a better way to determine when the game is just looping aimlessly.
2 comments
[ 3.8 ms ] story [ 13.8 ms ] thread