public Maze(int a, int b)
string lightsquare = "~";
for (int x=0; x< 10; x++)
for (int y=0; y< 10; y++)
for (int x=0; x< 10; x++)
for (int y=0; y< 10; y++)
Console.Write(grid[x,y]);
Random random = new Random();
for (int x=0; x< 10; x++)
int randomfirst=random.Next(4);
for (int i = 0; i < randomfirst; i++)
for (int x=0; x< 10; x++)
int randomsecond=random.Next(4);
randomsecond = 8-randomsecond;
for (int i = 9; i > randomsecond; i--)
public static void Main()
Maze myMaze = new Maze(10,10);