public static void Main()
const string Cell = "¦ ";
cell[] grid = DefaultGrid(Cell,rows,columes);
for (int y =0; !(y == Cell.Length*rows); y++)
const int CurrentRow = 0;
for (int x = 0; x<columes; x++)
CellLine = CellLine + grid[(CurrentRow*rows + x)].display;
CellLine = CellLine + "¦";
public static cell[] DefaultGrid(string Cell,int rows, int columes)
cell[] grid = new cell[rows*columes];
for (int CellsCerated = 0; !((CellsCerated == rows*columes)); CellsCerated++)
grid[CellsCerated].X = xCorodiant;
grid[CellsCerated].Y = yCorodiant;
grid[CellsCerated].display = Cell;
grid[CellsCerated].Value = Cell[2];
yCorodiant = yCorodiant+ 1;
if (yCorodiant > columes)
xCorodiant = xCorodiant+1;
Console.WriteLine(grid[20].X);
Console.WriteLine(grid[20].Y);