Ejemplo n.º 1
0
        private void evolveRowCells(int row, CellStateEnum[,] state)
        {
            var cols = _data.NumberColumns;

            for (int col = 0; col < cols; col++)
            {
                var cellContext = _data.NeighborhoodFor(new CellPosition(row, col));
                var cell        = new Cell(cellContext);
                state[row, col] = cell.Evolve();
            }
        }