Added some spice to the bull and cow game by adding assets from quixel. Also added a post processing so when player enters the lake, it makes it look look like you entered a body of water.
Hello! I purchase your Unreal Engine C++ course in Udemy! How am i able to watch courses in GameDev.tv?
Go to the last section of the course in Udemy, there are instructions about how to migrate your course, there will be a link that will redirect you to GameDev site where you find a code to copy and send it back to GameDev account on Udemy.
Congrats, we all have big hopes to build the last game of this course successfully and get to the next course to learn the multiplayer games with online gaming. So, stick around and get this done!
Hi! I need someone help me. When I put other character in the guess part that is not a number, the game makes it a huge number not a 0, that happens when the player puts the numbers in the same line separated by spaces, I don´t know why??
But, when the player puts the numbers in different lines with other character that is not a number it tooks the character like a 0 just like the prof says.
Thanks for all the help you could give me!!
Hi people!!
I´m sending you my tripleX game where the player has lost the game!!
Thanks for everything!!
Describe the issue with more details please! What’s the problem? I Think first you have to compile and then run the compiled file!
I’m not entirely sure what the Main () function does, I think it will hold the central content of my body of code.
Thx for this course it has been very helpful so far. I am a young programmer (14 yrs old) coming from scratch and this has surprisingly made a lot of sense. Thanks again.
-Jup1t0r
- The Preprocessor directive #include <>… tells the compiler that we are using the input and output keywords from the library.
- The Expression Statement are used to output information to the user.
- The Declaration Statements are used to pass values to the variables.
- The Return Statement returns the program to initial state, I think.
#include
void pi(int df)
{
std::cout <<"welcome hacker";
std::cout <<"\nU have to enter the correct combination for level="<<df;
}
bool p(int df)
{
pi(df);
int a=rand()%df+df;
int b=rand()%df+df;
int c=rand()%df+df;
int sum=a+b+c;
int prod=a*b*c;
std::cout <<"\t\nGUESS: sum of three number is=" <<sum;
std::cout <<"\t\t\nGUESS: product ot three number is="<<prod;
int G1, G2, G3;
std::cout<<"\n\tenter the number code to move forward\n";
std::cin>>G1;
std::cin>>G2;
std::cin>>G3;
std::cout<<"the numbers are\n"<<G1 <<std::endl <<G2 <<std::endl <<G3;
int GS=G1+G2+G3;
int GP=G1*G2*G3;
if ( sum==GS && prod==GP)
{
std::cout<<"\nU cracked the code weldone\n";
return true;
}
else
{
std::cout<<"\nU loose to crack the code u noob\n";
return false;
}
}
int main()
{
int d=1;
int const md=5;
while (d <= md)
{
bool bcompletelvl=p(d);
std::cin.ignore();
std::cin.clear();
if(d)
++d;
}
return 0;
}
hi
my loop is not ending after when u loose,it keeps running, plz if anyone could help me out!!
thankyou
There are many ways to break out of the loop, the shortest one is to add the expression "break;"after the ++d
Tysm sir ,I had forgotten