It looks like you're not even getting to those last two outer else if statements because if
(row - 1) >= 0 || (row + 1) <= grid.length
Then you don't get to test if
(col - 1) >= 0 || (col + 1) <= grid[0].length
Yeah, like you said, I suppose that was an obvious mistake. Funny how those...
Well, scienceteacher is right in the sense that some discrete equations exhibit chaos. But I think the idea that the math in this is quantized is a misnomer. These discrete systems use an itterative process of the feedback loop that involves "regular" math. To say that the math is quantized is...