Forum maintenance in progress. Some functionality might not work as expected.
Need Help With C#
Well I recently started learning C# for my course, my most recent assignment requires me to create a program (which will probably seem very basic to some) but have the code written in an efficient way, I have wrote a Rock-Paper-Scissors style thing and I need help:
1) Shortening it where possible
2) Making it so if the user enters anything other than an integer into the command prompt it will return a simple 'Console.Write("Error!");' instead of crashing.
Code is on Pastebin at: http://pastebin.com/LTU4scaY
Any help is much appreciated!
1) Shortening it where possible
2) Making it so if the user enters anything other than an integer into the command prompt it will return a simple 'Console.Write("Error!");' instead of crashing.
Code is on Pastebin at: http://pastebin.com/LTU4scaY
Any help is much appreciated!
0
