Very nice, thanks a lot! Please make more small projects like this. This is a great opportunity to make something funny and gain the C# skills at the same time
just for you, fuys, knew: in my school we`re sometimes watching programming videos, and we watched right this wideo! I`m learning in middle Russian school by the way.
Thanks a lot for the video. A few constructive criticisms 1. You need to speak slower. 2. Take your time to move in between lines of code. 3. The code isnt clear on the screens. Keep up the good work. Always try to imagine an absolute beginner is watching the video. If its not for beginners , say so at the beginning of the video.
2 things i cant figure out what im doing wrong: 1) The scores arent popping up, and 2) the only time the loops work for y/n is when i switch the places of the while statements. if anyone knows id appreciate it!
if you had 'Using System", it should work. In fact, it will give you an error if you also try to use "System.Math" while you already have System by itself
Awesome! Big thanks for sharing. Very useful for a beginner to start a simple project and make own changes to it. Though, when I try to run this game it will lead to a CS0168 error which says that inputCPU is declared but never used. Looking at your video I also don't see that you assigned this before going into the loop.
The CPU won't choose 0 because it is below the lower limit set in the rnd.Next() method. As for the CPU not choosing 4, that's because the upper limit is exclusive, meaning that it will never choose 4, only the numbers before it. However the lower limit is inclusive which means it can also choose 1 and the numbers that come after it.
- new line \t - tab (more space between text) Imagine you're writing something in console: Console.WriteLine("Hello Sir"); it will output: Hello Sir But, if you write: Console.Write("H\tello Sir); it will output: H ello Sir as for t{0} , you're inserting parameters. For example: int a =1; int b=2; int c=3; Console.Write("First number is {0} , Second is {1} , third is {2}",a,b,c) in {0} you're inserting a which is 1 in {1} you're inserting b which is 2 in {2} you're inserting c which is 3 output: First number is 1, Second is 2, third is 3 Also, there is another way of inserting parameters: Console.Write("First number is"+a+" Second is"+b+" Third is"+c);
This ability is gift, I mean writing code, It is like drawing ability, Person absolutely has to be talented otherwise impossible to write a code like this.
@@Irishhellhound Programming is about managing complexity. In order to do that one must identify with a name (a method) every action (among many other best practices). Such methods preferably will contain a single statement. "If" statements should be avoided and any nested if is certainty too complex. Literals, like text and numbers, should always be injected. Any call to infrastructure frameworks like the class console should be done indirectly, Core code should be free from this kind of dependencies. Good code declares no method variables. Yes, whenever you see "var x" that is wrong, the x should be an class variable and preferably injected. About the concrete example on this video, rock, paper, scissors should be value types, the random generator should be a class or at least a method. The code determining a winner should also be a class. Once you start coding anything a bit more complex you will see code like the one showed here creates problems.
Very nice, thanks a lot! Please make more small projects like this. This is a great opportunity to make something funny and gain the C# skills at the same time
can you code your video to be louder
Worst comment I've ever read so far
Bruhology agreed. Let’s just hope that that was a joke comment XD.
@Bruhology not that bad actually
@@bruhology6437 I dunno- yours is a definite contender.
@@bruhology6437 r/woosh
Really nice for learning simple if and switch statements, bool and while loops. awesome for a beginner like me.
just for you, fuys, knew: in my school we`re sometimes watching programming videos, and we watched right this wideo!
I`m learning in middle Russian school by the way.
Nice!
start of an RPG text game right there too :O
Good tutorial. A suggestion would be to fix the audio, really soft.
Thanks my guy!! This was helpful as HECK
Ok baljeet
@@bruhology6437 Worst comment I've ever read so far
Nice color of the editor's theme is this manually configured or just ready-made theme?
Thanks for this small project! Great to practice with simple explanations.
Bummer you only have one video posted this was really good =)))
very good video you explain things really well. You helped me with my summer computing work
Thanks a lot for the video. A few constructive criticisms 1. You need to speak slower. 2. Take your time to move in between lines of code. 3. The code isnt clear on the screens.
Keep up the good work. Always try to imagine an absolute beginner is watching the video. If its not for beginners , say so at the beginning of the video.
2 things i cant figure out what im doing wrong: 1) The scores arent popping up, and 2) the only time the loops work for y/n is when i switch the places of the while statements. if anyone knows id appreciate it!
do you have a video for doing this exact thing but in javascript?
I notice on my code I don't have "Using System.Math" like you do, is that ok?
if you had 'Using System", it should work. In fact, it will give you an error if you also try to use "System.Math" while you already have System by itself
What does the "\t" does when around "Player"?
I loved your project. Can you make some object-oriented projects please?
This was awesome my guy
Thank you so much for this! Great way of exercising!! You've explained it very well.
If anyone is watching this now an easier way to add a variable to a string is the following
Console.WriteLine($"My name is {name}");
Very good and nicely explained
Great but the sound is very low.
THANK YOU!
Programming is fun
The Console closes whenever i press enter to submit the answer???
you need to use console.readkey(); end of your code bro if you wanna see you program until you tab any button
after you type Console.WriteLine(someing);
// your next line needs to be
Console.ReadLine();
Awesome! Big thanks for sharing. Very useful for a beginner to start a simple project and make own changes to it.
Though, when I try to run this game it will lead to a CS0168 error which says that inputCPU is declared but never used.
Looking at your video I also don't see that you assigned this before going into the loop.
How was this corrected? Or what do I need to do to correct this?
@@dhenr188100 in the end could not fix it ;S But somehow it did let the program run, even with the error
Weee want more videoos!!! 🤌🏾✨✅
Do you use C#?
Is there a reason the computer wouldn't choose 0 or 4?
The CPU won't choose 0 because it is below the lower limit set in the rnd.Next() method.
As for the CPU not choosing 4, that's because the upper limit is exclusive, meaning that it will never choose 4, only the numbers before it. However the lower limit is inclusive which means it can also choose 1 and the numbers that come after it.
sir i want souce code please
Are you coding on C# cuz
using System.Math; - doesn't exist, do I need to download something
this is so cool
Thank you
How can I run/try the Programm
beta or videos kiu nhi baniy
thx
sorry I have a question..
what does this code actually does
Console.WriteLine("
SCORES:\tPLAYER:\t{0}\tCPU:\t{1}", scorePlayer,scoreCPU);
Like what's with the
and the t{0}
I really don't know because I just got started coding
- new line
\t - tab (more space between text)
Imagine you're writing something in console:
Console.WriteLine("Hello Sir");
it will output:
Hello Sir
But, if you write: Console.Write("H\tello
Sir);
it will output:
H ello
Sir
as for t{0} , you're inserting parameters.
For example:
int a =1;
int b=2;
int c=3;
Console.Write("First number is {0} , Second is {1} , third is {2}",a,b,c)
in {0} you're inserting a which is 1
in {1} you're inserting b which is 2
in {2} you're inserting c which is 3
output:
First number is 1, Second is 2, third is 3
Also, there is another way of inserting parameters:
Console.Write("First number is"+a+" Second is"+b+" Third is"+c);
TY
I got 27 bugs, I get lost with all the copy and pasting
nice video
@/programmingstories
For some reason it wont work for me. It says “ Value assigned to ‘inputCPU’ is never used” and wont work
Right? And in CMD if you press enter itll just close down again.
you need to give it a value
inputCPU = Console.ReadLine();
inputCPU = inputCPU.ToUpper();
dude i cant hear anything
cool
None of this works
This ability is gift, I mean writing code, It is like drawing ability, Person absolutely has to be talented otherwise impossible to write a code like this.
no you just have to study much xD
Great Video, Horrible Voice Volume
This is to advance to me
For anyone watching this please don't write code like the one on this video.
Why?
@@Irishhellhound Programming is about managing complexity. In order to do that one must identify with a name (a method) every action (among many other best practices). Such methods preferably will contain a single statement. "If" statements should be avoided and any nested if is certainty too complex. Literals, like text and numbers, should always be injected. Any call to infrastructure frameworks like the class console should be done indirectly, Core code should be free from this kind of dependencies. Good code declares no method variables. Yes, whenever you see "var x" that is wrong, the x should be an class variable and preferably injected. About the concrete example on this video, rock, paper, scissors should be value types, the random generator should be a class or at least a method. The code determining a winner should also be a class. Once you start coding anything a bit more complex you will see code like the one showed here creates problems.
@@JorgePicco Oh wow i didn't expect such an in-depth response, thank you, i think i understand now
so after i followed the video i get this error variable input CPU is never used