Question: i have a project to write game of life in...
I have a project to write Game of Life in MATLAB and i need to have 3 different functions :
1/ a function about cell position and calculate their neighbors
2/ a function about living , death and stasis rules
Any live cell with fewer than two live neighbours dies, as if caused by under-population.
Any live cell with two or three live neighbours lives on to the next generation.
Any live cell with more than three live neighbours dies, as if by overcrowding.
Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
I have started with this