Doubts conway's game of life
Posted: March 4th, 2017, 5:34 am
Hi guys,
I am writing a macro that is mostly an excel based version of Conway's game of life if you know about Conway's game of life?The trouble is, both birth and death are invented to occur concurrently, and the way I am presently doing it they occur successively so births and deaths that happen earlier in the for loop...next loop affect the results of calculation later on.To solve this, in its place of calculating the fate of a cell based on the value of the 8 cells presently surrounding it, I would like to store the cell values at the end of each loop, and then make a calculation that refers back to these values. so the fate of each cell would then be determined by the 8 subsequent saved values and not the 8 current values.I hope I have explained myself obviously sufficient mostly what I am asking is, how to save the values of each of the cell in the sort at the end of each loop, if the statement within a loop can refer back to these values, in its place of referring to the present values.
I am writing a macro that is mostly an excel based version of Conway's game of life if you know about Conway's game of life?The trouble is, both birth and death are invented to occur concurrently, and the way I am presently doing it they occur successively so births and deaths that happen earlier in the for loop...next loop affect the results of calculation later on.To solve this, in its place of calculating the fate of a cell based on the value of the 8 cells presently surrounding it, I would like to store the cell values at the end of each loop, and then make a calculation that refers back to these values. so the fate of each cell would then be determined by the 8 subsequent saved values and not the 8 current values.I hope I have explained myself obviously sufficient mostly what I am asking is, how to save the values of each of the cell in the sort at the end of each loop, if the statement within a loop can refer back to these values, in its place of referring to the present values.