public void PrintTestMaze() { int n = 3; MazeStructure maze = new MazeStructure(n); //maze.testDraw(); maze.TestDraw(); }
public void East_West_Questions_Are_The_Same_On_Either_Side_Of_Door() { int n = 3; MazeStructure maze = new MazeStructure(n); //maze.testDraw(); maze.TestDraw(); for (int i = 1; i < maze.size; i++) { for (int j = 0; j < maze.size; j++) { if (maze.ValidIndex(j + 1)) { if (!maze.EastWall[i, j]) { Console.WriteLine($"({i},{j}) east question {maze._QuestionsList[maze.EastQuestion[i, j]].CorrectAnswer} matches west question {maze._QuestionsList[maze.WestQuestion[i, j + 1]].CorrectAnswer} of ({i},{j + 1})"); Assert.IsTrue(ReferenceEquals(maze._QuestionsList[maze.EastQuestion[i, j]], maze._QuestionsList[maze.WestQuestion[i, j + 1]])); } } } } }