public LifeContainer Copy() { var copy = new LifeContainer(); foreach (var cell in AliveCells) { copy.AliveCells.Add(cell.Copy()); } return(copy); }
public LifeSurround(LifeContainer alicecells, LifeRule rule) { Cells = alicecells; Rule = rule; }
public LifeAlgoritm(LifeRule gamerule) { Rule = gamerule; Now = new LifeContainer(); Previous = new LifeContainer(); }