Example #1
0
        private Grid createGrid(int rows, int columns)
        {
            int rowNumber = 0;
            //int columnNumber = 0;
            Grid grid = new Grid();
            for (int i = 0; i < rows; i++ )
            {
                grid.AddRowBottom();

            }
            foreach (Row row in grid.Rows)
            {
                for (int i = 0; i < columns; i++)
                {
                    row.AddCellRight(rowNumber, i);
                }
                rowNumber++;
            }
            return grid;
        }
Example #2
0
 //private Grid newGrid;
 public Game()
 {
     oldGrid = createGrid(rows, columns);
 }