Got there with a slight variation

Managed to do this challenge relatively quickly once I’d got my head around it, but rather than using game state, I hard-coded the passwords into an “if else” block within the “CheckPassword” function. So it looked more like:

void RunPasswordScreen(string input)
    {
       if(level == 1)
        {
            if (input == "donkey")
                {
                    Terminal.WriteLine("Well done!");
                }
        }
    }

… if you catch my drift. In any case, it worked! That’s the important thing! :smiley:

Privacy & Terms