Learning programming is like learning to drive a car. When you learn how to drive a car, you are required to learn all road signs before putting your hands on the wheel, no matter what. It is the same for programming, there is a set of techniques you need to learn before starting your own projects.
My advices:
- Forget this project for now.
- Learn the language by reading documentation.
- Follow tutos to get familiar with common techniques and concepts.
- Learn the debugger as soon as possible, it is a great tool to learn how your code behave.
Debugger - Wikipedia, the free encyclopedia[
^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
- Learn some analyze methods/techniques, ,
Dijkstra Top-Down method is a good start.
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[
^]
https://en.wikipedia.org/wiki/Structured_programming[
^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[
^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[
^]
Remember the exercises and little projects of tutos are not here to make something useful, they are here to teach you programming.
Advice: add a display of computer choices and you will see that your program is completely wrong.
Random r = new Random();
int computerSelection = r.Next(4);
Console.WriteLine(computerSelection);
Console.WriteLine("\n");