========================================== >>>> NEWER/BETTER/FASTER VERSION HERE: <<<< >>>> https://scratch.mit.edu/projects/106301099/ <<<< ========================================== SPACE to toggle edit mode, C to clear, R for new random cells. This uses a different method to store the cells, giving extra speed! Instead of storing each cell as a single item in a list, it stores blocks of 14 cells (with 8 cells for the last block on a row – there are 120 cells across each row, so 8 blocks of 14 cells plus one block of 8). This makes it possible to perform operations on whole chunks of 14 cells to work out the neighbours, which is much quicker. However, it does require various shenanigans at the boundaries between chunks of cells, which causes a bit of a speed hit. Still, it's much quicker overall. :)