public Maze() { _maze = new List<int[]>(); _mazeForDisplay = new List<int[]>(); _mouse = new Mouse(); _pathmemory = new List<Direction>(); }
// This constructor is never used but reserved for potential expansion. It copied the maze from another maze object. public Maze(Maze mazeToCopy) { _maze = new List<int[]>(); _mazeForDisplay = new List<int[]>(); _mouse = new Mouse(); _pathmemory = new List<Direction>(); for (int i = 0; i < mazeToCopy._maze.Count; i++) { int[] newRow = new int[mazeToCopy._maze[i].Length]; for (int j = 0; j < mazeToCopy._maze[i].Length; j++) { newRow[j] = mazeToCopy._maze[i][j]; } AddRow(newRow); } }