Пример #1
0
        public MazeGrid(int sideLength)
        {
            Grid = new GridCell[sideLength, sideLength];
            IsVisible = true;
            WallsVisible = true;

            SelectedRoute = new List<Point>();
        }
Пример #2
0
 private void Transpose(GridCell[,] arr)
 {
     for (int i = 0; i < arr.GetLength(0); i++)
     {
         for (int j = 0; j < i; j++)
         {
             GridCell temp = arr[i, j];
             arr[i, j] = arr[j, i];
             arr[j, i] = temp;
         }
     }
 }