Комментарии:
خدایی خوب یاد میده؟اگر خوبه بشینم ببینم
ОтветитьThank you Master!
ОтветитьReally really useful !
ОтветитьThank you❤❤
ОтветитьGreat tutorial as always 👍
ОтветитьBest of the best 👌
ОтветитьRandom comment 🙂
Ответитьone of the best way to approach C# . Thank you Bro Code!!!!!!!!
Ответитьthank you for this brother!
ОтветитьRandom
Ответитьthis is a random comment (great video watched it all the way even though im supposed to know classes already :) . )
ОтветитьRandom comment
ОтветитьCan we all jast appreciate, that this Video is exactly 4 hours long
(very satisfying)
Is these tutorial for me if I don't want to make sth in unity? I just want to learn c# for back-end projects
ОтветитьThe best way to approach C# :D. Thank you man!
Ответитьthanks for your handwork
Ответитьthis is great!!!!!!
ОтветитьHi Bro Code,
I don't know if you will ever see this but I am coding a c# master mind game for my As level project which is the British version of high school and the premise of the game is to guess key1-8 each assigned random values(I used your vids to do this btw) but I don't really know how to add a feature that would allow the use to input yes or no to the question would you like to play again and then the game restart itself. If you ever get the time I'm going to paste a copy of the code ( I'm sorry if the intendations get messed up) please have a look on how to do it if you wouldn't mind. Many thanks.p.s if you don't get the time its ok but I want you to know you have really helped me in my course thanks.
class MasterMind
{
static void Main(string[] args)
{// this block of code declares all the variables that im going to use
int score = 0;
int key1;// The key variable is the variabel that the user will ahev to guess int key2;
int key3;
int key4;
int key5;
int key6;
int key7;
int key8;
int guess1;// The guess variable is the name of the guess of the user
int guess2;
int guess3;
int guess4;
int guess5;
int guess6;
int guess7;
int guess8;
Random random = new Random();// this programme allows me to generate a psuedo random number
key1 = random.Next(0, 9);//this generates a random number for each key key2 = random.Next(0, 9);
key3 = random.Next(0, 9);
key4 = random.Next(0, 9);
key5 = random.Next(0, 9);
key6 = random.Next(0, 9);
key7 = random.Next(0, 9);
key8 = random.Next(0, 9);
Console.WriteLine("Do you think the first key is a 1-8 or anywhere in the middle");//console . writeline is used to output text on screen in this case the question is key1 a 1,2,3,4,5,6,7 or 8
guess1 = int.Parse(Console.ReadLine());// this allows the user a domain to input an awnser
if (guess1 == key1)//the if statement is the responce given wether a statement is true or false which in this case wether or not the player has input the write awnser {
Console.WriteLine("coreect!You get 1 point");//if they have their score variable increases by 1
score++;
}
else//else s if the statement is false in which case the following text will appear {
Console.WriteLine(" your wrong :( unfortunatly it was actually " + key1 + " Better luck next time:)");// by placing the key1 variable in a console . writleine the cvalue of the variable is output to the user
}
Console.WriteLine("Do you think the second key is a 1or 8 or somewhere in between");//The proccess then repeates for every single key ,each producing a psuedo random number guess2 = Int32.Parse(Console.ReadLine());
if (guess2 == key2)
{
Console.WriteLine("coreect!You get 1 point");
score++;
}
else
{
Console.WriteLine("better luck next time it was actually " + key2);
}
Console.WriteLine("Do you think the third key is a 1,2,3,4,5,6,7 or 8");
guess3 = Int32.Parse(Console.ReadLine());
if (guess3 == key3)
{
Console.WriteLine("coreect!You get 1 point");
score++;
}
else
{
Console.WriteLine(" your wrong it was " + key3);
}
Console.WriteLine("Do you think the fourth key is 1-8 or somewhere in between?");
guess4 = Int32.Parse(Console.ReadLine());
if (guess4 == key4)
{
Console.WriteLine("coreect!You get 1 point");
score++;
}
else
{
Console.WriteLine(" your wrong it was " + key4); }
Console.WriteLine("Do you think the fifth key is a 1 or 8 or somewhere in the middle"); guess5 = int.Parse(Console.ReadLine());
if (guess5 == key5)
{
Console.WriteLine("coreect!You get 1 point");
score++;
}
else
{
Console.WriteLine(" your wrong :( it was " + key5); }
Console.WriteLine("Do you think the sixth key is a 1 or a 8 or somewhere in the middle"); guess6 = int.Parse(Console.ReadLine());
if (guess6 == key6)
{
Console.WriteLine("coreect!You get 1 point");
score++;
}
else
{
Console.WriteLine(" your wrong :( it was " + key6); }
Console.WriteLine("Do you think the seventh key is a 1 or a 8 or somewhere in between"); guess7 = int.Parse(Console.ReadLine());
if (guess7 == key7)
{
Console.WriteLine("coreect!You get 1 point");
score++;
}
else
{
Console.WriteLine(" your wrong :( it was " + key7); }
Console.WriteLine("Do you think the eighth key is a 1 or a 8 or somewhere inbetween"); guess8 = int.Parse(Console.ReadLine());
if (guess8 == key8)
{
Console.WriteLine("coreect!You get 1 point");
score++;
}
else
{
Console.WriteLine(" your wrong :( it was " + key8);
}
if(score == 8)// here we state that if the score variable is equal to 8 which is the max score you can get the following message will output
{
Console.WriteLine("Well done you win :)");
}
else// however if that condition is not met them the following message plays outputing their score aswell
{
Console.WriteLine("You got "+ score+" Better luck next time! ");
}
}
}
nicwe
ОтветитьSIT BACK
RELAX
& SHARAP :D (GTA songs)
Thanks bro for your amazing videos!
Greetings from Barcelona!
so do you have to initialize a variable every time you about to use it in a condition inside a while loops?
ОтветитьI'm confused on the nested loop part. How the hell does the system know how to create specifically rows and columns
ОтветитьThanks for great way of teaching, much appreciated.
Ответитьidk why but I cant type the "else" command, it shows SIX errors at 55.01
Ответитьlove from india
Ответитьrandom comment''love the way you teach love from india
Ответитьrandom comment
Ответитьrandom comment-
Ответитьthis is a comment
ОтветитьDo we need to know any other language before learning this
ОтветитьI have to say... beep is a good feature
Ответить.
Ответитьthanks for the course bro, greetings from Russia. I would like to know if there will be a 12 hour course?
Ответитьclass RandomComment{
string value;
pushComment(comment){
this.value=comment;
}
}
RandomComment comment = new RandomComment();
comment.pushComment("This is a random comment");
console.log(comment.value);
finally something helpful for bros
ОтветитьThanks alot
ОтветитьI am a Fello Bro now. LOL!
ОтветитьBeautifull. Learnt a lot
ОтветитьNow this video is gonna let me buy a yacht. Bro, you are the only person giving free tutorials over an hour long. Thanks bro,
ОтветитьWWW
ОтветитьAlso, when doing overloading constructors, can you use the params keyword as well or not?
ОтветитьI know it may be a lot to ask but for each video in this playlist would it be possible for you to make some exercises to do after each video
Ответить