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
2 Likes
1 Like
Well done Anthony, nice work, and nice tidy code you have there
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
See also;
- Forum User Guides : How to apply code formatting within your post
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
1 Like