Exemplo n.º 1
0
 // this is just for internal use of the Grid
 private Grid(CellStateEnum[,] data, IInfrastructureDevice <CellStateEnum[, ]> iodevice) : this(iodevice)
 {
     _data = new GridData(iodevice, data);
 }
Exemplo n.º 2
0
        public Grid WithRandomData(GridSize gridSize)
        {
            _data = _data.Randomize(gridSize);

            return(this);
        }
Exemplo n.º 3
0
 public Grid(IInfrastructureDevice <CellStateEnum[, ]> iodevice)
 {
     _iodevice = iodevice;
     _data     = new GridData(_iodevice);
 }