Unbothered
Coder
I've been learning about maze Algorithms and have started developing my own. I am still at the very beginning of my maze development. Currently I have three cells stacked on top of each other using these strings down below. What I am aiming for is to have three columns and three rows of cells instead. Any help and feedback would be greatly appreciated.
Code:
public static int rows = 3;
public static int cols = 3;
public static string space = " ";
public static string corner = "+";
public static string horz = "----";
public static string vert = "|";
public static string result = "";
public static int[,]Cell = new int [rows,cols];
static void DrawMaze()
{
for(int i = 0; i < Cell.GetLength(0); i++)
{
Console.WriteLine(corner + horz + corner);
Console.WriteLine(vert + space + space + vert);
}
}