Hacker Terminal Username Screen

Hey Y’all. I decided to tweak the program a bit, so that instead of getting rid of the greeting, I allowed the user to input a username on a page that pops up, and once they do, then the normal main menu runs.


I also tweaked the 007 Easter egg to also change the username to Mr. Bond.

I had to make the greeting variable global (that is, I took it out of the start function, and put it above it, so that all the functions could use it), and I had to do an awkward if statement inside another if statement. to check that the inputs were on the correct screen. If any more experienced coders know a cleaner way to do this, that would be awesome! Please share!

Here’s my code:

1 Like

Nice, I add also thought of trying to do this. However I got caught up with other things.

Is this your first C# experience ?

It’s my first go with C# (other than a 5 hour course 6 years ago, but that’s not been super helpful.). That said, I have worked a fair bit with Processing, so I knew roughly what I needed to do.

Privacy & Terms