Go to next level without exiting to main menu


void NextLevel(string input)
{
level = level + 1;
AskForPassword();
}

put this in your switch case in reward screen:-

Terminal.WriteLine(“Press 2 to try next level”);
currentScreen = Screen.MainMenu;
if (input == “2”) //for case 1, for case 2 input has to be 3 as the next level will be 3.
{

                NextLevel(input);
                currentScreen = Screen.Password;
            }
2 Likes

Great job getting the logic right.

1 Like

Thank you

Privacy & Terms