Aug 31, 2018 · 1 min read
Thank you, I’ll try to comment better next time, realised the code needs a few more of them. The game of life is a cellular automaton, basically start with a random grid of cells and they follow certain rules:
- If a cell has less than 2 neighbors it dies.
- If it has 2 or 3 neighbors it survives to the next generation.
- If it has more than 3 neighbors it dies as if by overpopulation.
- Then any dead cell with 3 love neighbors becomes a live cell, as if by reproduction.
I got the rules from Wikipedia
