Exemplo n.º 1
0
        public void DecideNewLife(World world)
        {
            for (var row = 1; row <= world.Width; row++)
            {
                for (var col = 1; col <= world.Height; col++)
                {
                    var newCell = new Cell(row, col);

                    if (world.CountNeighbors(newCell) == 3)
                    {
                        _cellsToBeCreated.Add(newCell);
                    }
                }
            }
        }