1. Engineering
  2. Computer Science
  3. i have a project to write game of life in...

Question: i have a project to write game of life in...

Question details
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

older O Command Window Editor-/users/hongn/Documents/MATLAB/Cor Figure 1 atriskatt.m 3 Conway.mx+ ile Edit View Insert Tools Desktop Window Help mylife zeros (100,100) mylife(30:70 , 30) 1 mylife (30,30:70) 1 mylife (30:78 ,70) -1 mylife( 70 , 30:70) 1 10 20 40 F 80 100 0 10 20 30 40 5 60 70 80 90 100 nz 160 Ln 1 script
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution