/// <summary> /// This is a bad method that breaks all sorts of rules /// </summary> /// <param name="ui"></param> public void DisplayMaze(UserInteraction ui) { for (int y = 0; y < dungeon.rows; y++) { StringBuilder line = new StringBuilder(); for (int x = 0; x < dungeon.cols; x++) { if (y == row && x == col) { line.Append('P'); } else if (dungeon.RoomVisited(y, x)) { line.Append('O'); } else { line.Append('x'); } } ui.PushStringLine(line.ToString()); } }