Example #1
0
        public LifeContainer Copy()
        {
            var copy = new LifeContainer();

            foreach (var cell in AliveCells)
            {
                copy.AliveCells.Add(cell.Copy());
            }

            return(copy);
        }
Example #2
0
 public LifeSurround(LifeContainer alicecells, LifeRule rule)
 {
     Cells = alicecells;
     Rule  = rule;
 }
Example #3
0
 public LifeAlgoritm(LifeRule gamerule)
 {
     Rule     = gamerule;
     Now      = new LifeContainer();
     Previous = new LifeContainer();
 }