Solo Challenge

The solo challenge was very satisfying to complete. The code feels elegant. I like how we use variables to store states, and based on the state the OnUserInput will process different inputs. I had trouble figuring out where to put my ProcessPassword() function. At first I tried to use StartMenu() to do this, but that didn’t work. Then I realized the right place to put ProcessPassword() was within OnUserInput(string input) after the screen changed to the password screen.

I remember why I love coding now.

Privacy & Terms