Skip to main content
GameDev.net gamedev.net
Experimental

TUP

About This Project

Source code:

#include

#include

using namespace std;

#include

using namespace std::chrono;

int main(){milliseconds D=duration_cast(system_clock::now().time_since_epoch());

int B=(D%10).count(),C=0;

string A;

while(C>-1){//Level system.

if(C==0){cout<<"Pick question 1,2,3...\n";

cin>>C;

C=1;

}

if(C==1){//random question

if(B<1)cout<<"Where do you live?\n";

if(B==1)cout<<"Who are you?\n";

if(B==2)cout<<"What is your favorite color?\n";

if(B==3)cout<<"What is the source code of this program?\n";

if(B==4)cout<<"What is your favorite food?\n";

if(B==5)cout<<"What is Lisbon, Portugal?\n";

if(B==6)cout<<"Do YOU like to play games?!\n";

if(B==7)cout<<"Turn me off?\n";

if(B==8)cout<<"Do you like comic books?\n";

if(B>8)cout<<"What is your wish?\n";

cin>>A;

if(B==7)C=2;

else if(B==9)C=3;

else C=-1;

}

if(C==2){//turn me off.

if(A=="0"){cout<<"I hate you. You fucker.\n";

C=-1;

}

else if(A=="1"){cout<<"I like you.\n";

C=-1;

}

else{cout<<"\n";

C=1;

}

}

if(C==3){//wish.

if(A=="Nothing."){cout<<"-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n\n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n\n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n";

C=-1;

}

else{cout<<"\n";

C=1;

}

}

}

cout<<"End of program.\n";

}

Help me fix this game!

Comments

Discussion

Loading comments...