一个很愚蠢的游戏!!!

说起来也是奇怪这个代码我也是不知道我当时的脸去哪了,上代码:

//细节成败于成功! 
#include
using namespace std;
void y() {
	for(int i = 0; i < 9999; i++) {
		for(int j = 0; j < 30000; j++) {

		}
	}
}
void ren() {
	cout<<"  &&&&   "<<endl;
	cout<<" & .. &  "<<endl;
	cout<<"&      & <==屏幕前嚣张的你!"<<endl;
	cout<<" & -- &  "<<endl;
	cout<<"  &  &   "<<endl;
	cout<<" & && &  "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"   &&    "<<endl;
	cout<<" &    &  "<<endl;
	cout<<"&      & "<<endl;
	cout<<"&      & "<<endl;
}
void ren2() {
	cout<<"  &&&&   ——————"<<endl;
	cout<<" & .. &  |  我好   |"<<endl;
	cout<<"&      & |  厉害   |"<<endl;
	cout<<" & ww &  ——————"<<endl;
	cout<<"  &  &   "<<endl;
	cout<<" & && &  "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"   &&    "<<endl;
	cout<<" &    &  "<<endl;
	cout<<"&      & "<<endl;
	cout<<"&      & "<<endl;
}
void ren3() {
	cout<<"  &&&&                    ~"<<endl;
	cout<<" & .. &                  ~ "<<endl;
	cout<<"&      &                ~  "<<endl;
	cout<<" & ww &                ~   "<<endl;
	cout<<"  &  &                 ~   "<<endl;
	cout<<" & && &               ~    "<<endl;
	cout<<"&  &&  &              ~    "<<endl;
	cout<<"&  &&  &               ~   "<<endl;
	cout<<"   &&                  ~   "<<endl;
	cout<<" &    &                 ~  "<<endl;
	cout<<"&      &                 ~ "<<endl;
	cout<<"&      &                  ~"<<endl;
}
void ren4() {
	cout<<"  &&&&   ——————     ~"<<endl;
	cout<<" & .. &  |  那是   |     ~ "<<endl;
	cout<<"&      & |什么???? |    ~  "<<endl;
	cout<<" & -- &  ——————  ~   "<<endl;
	cout<<"  &  &                 ~   "<<endl;
	cout<<" & && &               ~    "<<endl;
	cout<<"&  &&  &              ~    "<<endl;
	cout<<"&  &&  &               ~   "<<endl;
	cout<<"   &&                  ~   "<<endl;
	cout<<" &    &                 ~  "<<endl;
	cout<<"&      &                 ~ "<<endl;
	cout<<"&      &                  ~"<<endl;
}
void ren5() {
	cout<<"  &&&&   —————— ~"<<endl;
	cout<<" & .. &  |  那是   | ~ "<<endl;
	cout<<"&      & |什么?   |~  "<<endl;
	cout<<" & -- &  ————  ~   "<<endl;
	cout<<"  &  &             ~   "<<endl;
	cout<<" & && &           ~    "<<endl;
	cout<<"&  &&  &          ~    "<<endl;
	cout<<"&  &&  &           ~   "<<endl;
	cout<<"   &&              ~   "<<endl;
	cout<<" &    &             ~  "<<endl;
	cout<<"&      &             ~ "<<endl;
	cout<<"&      &              ~"<<endl;
}
void ren6() {
	cout<<"  &&&&   ———   ~"<<endl;
	cout<<" & .. &  |  那是 ~ "<<endl;
	cout<<"&      & |什么?~  "<<endl;
	cout<<" & -- &  ——  ~   "<<endl;
	cout<<"  &  &         ~   "<<endl;
	cout<<" & && &       ~    "<<endl;
	cout<<"&  &&  &      ~    "<<endl;
	cout<<"&  &&  &       ~   "<<endl;
	cout<<"   &&          ~   "<<endl;
	cout<<" &    &         ~  "<<endl;
	cout<<"&      &         ~ "<<endl;
	cout<<"&      &          ~"<<endl;
}
void ren7() {
	cout<<"  &&&&   —— ~"<<endl;
	cout<<" & .. &  |   ~ "<<endl;
	cout<<"&      & |什~ "<<endl;
	cout<<" & ~~ &    ~   "<<endl;
	cout<<"  &&&&     ~   "<<endl;
	cout<<" & && &   ~    "<<endl;
	cout<<"&  &&  &  ~    "<<endl;
	cout<<"&  &&  &   ~   "<<endl;
	cout<<"   &&      ~   "<<endl;
	cout<<" &    &     ~  "<<endl;
	cout<<"&      &     ~ "<<endl;
	cout<<"&      &      ~"<<endl;
}
void canju() {
	cout<<"此处省略";
	for(int i = 0; i < 5; i++) {
		cout<<"·";
		for(int j = 0; j < 9999; j++) {
			for(int d = 0; d < 3000; d++) {

			}
		}
		cout<<"·";
		for(int j = 0; j < 9999; j++) {
			for(int d = 0; d < 3000; d++) {

			}
		}
		cout<<"·";
		for(int j = 0; j < 9999; j++) {
			for(int d = 0; d < 3000; d++) {

			}
		}
		system("cls");
		cout<<"此处省略";
	}
}
void canju2() {
	for(int i = 0; i<1000; i++) {
		for(int j = 0; j < i; j++) {
			cout<<" ";
		}
		cout<<"啊!";
	}
}

int main() {
	system("color F0") ;
	int m ;
	cout << "按1开始游戏" << endl ;
	cout << "按2退出游戏" << endl ;
	while(cin>>m){
		if(1==m) {
			break;
		}
		if(2==m) {
			cout << "拜拜,欢迎下次来玩!" << endl ; 
			return 0 ;
		}
		if(m>2) {
			cout << "输入错误,游戏结束。" << endl ;
			return 0 ; 
		}
	}
	y() ; 
	system("cls");
	int a ;
	cout << "输入1,认为自己很嚣张" << endl ; 
	cout << "输入2,认为自己不嚣张" << endl ; 
	while(cin>>a){
		if(1==a){
			y() ; 
			system("cls");
			while(1==a) {
				ren();
				y();
				system("cls");
				ren2();
				y();
				system("cls");
				ren3();
				y();
				system("cls");
				ren4();
				y();
				system("cls");
				ren5();
				y();
				system("cls");
				ren6();
				y();
				system("cls");
				ren7();
				y();
				system("cls");
				canju();
				y();
				system("cls");
				canju2();
				system("pause");
				y() ; 
				system("cls");
				cout<<"知道不点嚣张的后果了吗?" << endl ;
				int n ;
				cout << "知道了输入1" << endl ;
				cout << "不知道输入2" << endl ;
				cin >> n ;
				if(1==n) {
					cout << "知道就好" << endl ;
					break ;
				}
				if(2==n) {
					y() ; 
					system("cls");
					main() ;
				}
				if(n>2){
					y() ; 
					system("cls");
					cout << "还要来是吗?" << endl ;
					main() ; 
				}
				y() ; 
				system("cls");
			}	
		}
		if(2==a){
			cout << "很有自知之明!" << endl ;
			cout << "拜拜!" << endl ;
			return 0 ; 
		} 
		if(a>2){
			cout << "输入错误,游戏结束" << endl ;
			return 0 ; 
		}
	}
	return 0;
}

还没全部完工,请期待后续!

你可能感兴趣的:(游戏,c++,开发语言,算法,游戏)