Ejemplo n.º 1
0
        public LifeContainer Copy()
        {
            var copy = new LifeContainer();

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

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