My first Lines of code Ever! + My Easter egg!

image
Here is my code so far for the Hacker game! I think I’m getting to grips with it however, this took me a while and had to comb out some issues. Also below is one of my Easter eggs :egg: :fried_egg: :wink:

2 Likes

image

1 Like

Well done Anthony, nice work, and nice tidy code you have there :slight_smile:

On a related note, you can just copy/paste your code directly into your forum posts, and then just apply the code formatting, this will then add syntax highlighting. Example;

private void OnUserInput(string input)
{
   if(input == "1")
   {
        Terminal.WriteLine("You chose Home PC");
    }
   
    // ....
}

One of the advantages of doing this is readability. But also, should you happen to ask for any support, those that help you can then just copy/paste your code back to you with a suggestion/correction which saves them having to type it all out.

Hope this helps :slight_smile:


See also;

1 Like

Nice! It may be like a foreign language now, but if you keep at it you’ll reach a point where things just begin to “click”, as they say. Good luck!

2 Likes

Thank you both :slight_smile:

1 Like

Privacy & Terms