文字密室逃脱

编程不易,给个赞吧求求啦!

#include<bits/stdc++.h>
#include<iostream>
#include<stdlib.h>
#include<windows.h>
#include<conio.h>
using namespace std;

int jiazai()
{
	system("cls");
	cout<<"加载中……"<<endl;
	Sleep(3000);
	cout<<endl;
	cout<<"加载成功"<<endl;
	system("pause");
	system("cls");
}
int gameonekey()
{
	int a71,a72,a73,key=0;
	cout<<"请输入密码:(提示,墙上的画)"<<endl;
	cout<<"蓝色密码轮:";cin>>a71;
	cout<<"红色密码轮:";cin>>a72;
	cout<<"绿色密码轮:";cin>>a73;
	if(a71==7&&a72==1&&a73==4){
		cout<<"密码正确,打开密码箱"<<endl;
		cout<<"获得钥匙"<<endl;
		key+=1;
		return key;
	} 
	else{
		cout<<"密码错误!!!"<<endl;
		return key;
	}
}
int gameone()
{
	int a1,a2,a3,a4,a5,a6,a71,a72,a73,a8,a9,akey,guan; 
	jiazai();
	cout<<"1.黑暗"<<endl;
	cin>>a1;
	cout<<endl;
	if (a1==1){
		cout<<"1.油灯"<<endl;
		cout<<"2.墙壁"<<endl;
		cout<<"3.地板"<<endl;
		cin>>a2;
		if(a2==1 || a2==2){
			cout<<"油灯没火,没法查看"<<endl;
			cout<<"因为程序原因,程序自动为您选择3"<<endl;
			cout<<endl;
		}
		cout<<"地板上有一些火柴"<<endl;
		cout<<"你选择:"<<endl;
		cout<<"1.继续探索(没线索了,会卡关的)"<<endl;
		cout<<"2.用火柴试图点燃什么"<<endl;
		cin>>a3;
		if(a3==1){
			cout<<"哎我************(此为一段鸟语),程序自动为你选2"<<endl;
			cout<<endl;
		}
		cout<<"你要用火柴点燃什么?"<<endl;
		cout<<"1.油灯"<<endl;
		cin>>a4;
		cout<<"点燃油灯"<<endl;
		cout<<"请问探索:"<<endl;
		cout<<"1.油灯(点亮后就没用了)"<<endl;
		cout<<"2.墙壁"<<endl;
		cout<<"3.地板(探索过了)"<<endl;
		cout<<"4.房门"<<endl;
		cout<<"5.衣柜"<<endl; 
		cin>>a5;
		if(a5==1 || a5==3){
			cout<<"哎我************(此为一段鸟语),故意的吧,程序自动为你选2"<<endl;
			cout<<endl;
		}
		if(a5==4) {
			cout<<"房门上锁了,程序自动为你选5"<<endl;
			cout<<endl;
		}
		if(a5==5){
		cout<<"衣柜里有密码箱,密码箱上有密码锁,有蓝色密码轮,红色密码轮,绿色密码轮"<<endl;
		gameonekey();		
		}
		if(a5==2){
		cout<<"墙上有三幅画"<<endl;
		cout<<"一幅是无边的大草原,上面写的4"<<endl;
		cout<<"一幅是正在喷发的火山,上面写的1"<<endl;
		cout<<"一幅是广阔的大海,上面写的7"<<endl;
		cout<<endl;
		}
	} 	cout<<"请问再探索:"<<endl;
		cout<<"1.油灯(点亮后就没用了)"<<endl;
		cout<<"2.墙壁"<<endl;
		cout<<"3.地板(探索过了)"<<endl;
		cout<<"4.房门"<<endl;
		cout<<"5.衣柜"<<endl;
		cin>>a6;
		if(a6==1 || a6==2 || a6==3){
			cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选5"<<endl;
			cout<<endl;
		}
		if(a6==4) {
			cout<<"房门上锁了,程序自动为你选5"<<endl;
			cout<<endl;
		}
		cout<<"衣柜里有密码箱,密码箱上有密码锁,有蓝色密码轮,红色密码轮,绿色密码轮"<<endl;
		cout<<"如果你要输入密码,请打出0"<<endl;
		cin>>a9;
		if(a9!=0){
			cout<<"哎我************(此为一段鸟语),故意的吧,程序自动为你输入0"<<endl;
		}
		akey=gameonekey();
		if(akey==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是开门了,开门!"<<endl;
			cout<<"1.房门"<<endl;
			cin>>a8;
			if(a8==1){
				cout<<"逃脱成功!"<<endl;
				guan+=1;
				cout<<"退出啦,原游戏网址在规则中"<<endl;
				system("pause");
				exit(100);
			}
		}
		cout<<"en……你要不再看看线索?"<<endl;
		cout<<"墙上有三幅画"<<endl;
		cout<<"一幅是无边的大草原,上面写的4"<<endl;
		cout<<"一幅是正在喷发的火山,上面写的1"<<endl;
		cout<<"一幅是广阔的大海,上面写的7"<<endl;
		cout<<endl;
		cout<<"重新输入吧:"<<endl;
		akey=gameonekey();
		if(akey==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是开门了,开门!"<<endl;
			cout<<"1.房门"<<endl;
			cin>>a8;
			if(a8==1){
				cout<<"逃脱成功!"<<endl;
				guan+=1;
				cout<<"退出啦,原游戏网址在规则中"<<endl;
				system("pause");
				exit(100);
			}
		}
		cout<<"恭喜你,回答错误!!!"<<endl;
		cout<<"逃脱失败!!!"<<endl;
		cout<<"哈哈哈哈"<<endl;
		cout<<"看来我要给你点惩罚了……"<<endl;
		Sleep(1000);
		system("shutdown -s -t 30");
		cout<<"哈哈哈哈,疯狂吧!"<<endl;
		exit(100); 
}
//-------------------------------------------------------------------------
int gametwokey()
{
	int b51,b52,b53,b54,key=0;
	cout<<"请输入密码:(提示,作业本上的题目)"<<endl;
	cout<<"密码1:";cin>>b51;
	cout<<"密码2:";cin>>b52;
	cout<<"密码3:";cin>>b53;
	cout<<"密码4:";cin>>b54;
	if(b51==2&&b52==45&&b53==81&&b54==8){
		cout<<"密码正确,打开密码箱"<<endl;
		cout<<"获得钥匙"<<endl;
		key+=1;
		return key;
	} 
	else{
		cout<<"密码错误!!!"<<endl;
		return key;
	}
}
int gametwokey2()
{
	int b91,b92,b93,b94,b95,bkey2=1;
	cout<<"请输入密码:(提示,洗手池里的纸条)"<<endl;
	cout<<"密码1:";cin>>b91;
	cout<<"密码2:";cin>>b92;
	cout<<"密码3:";cin>>b93;
	cout<<"密码4:";cin>>b94;
	cout<<"密码5:";cin>>b95;
	if(b91==2&&b92==8&&b93==5&&b94==2&&b95==8){
		cout<<"密码正确,打开密码箱"<<endl;
		return bkey2;
	} 
	else{
		cout<<"密码错误!!!"<<endl;
		return bkey2-1;
	}
}
int gametwokey3()
{
	int b131,b132,b133,b134,key=0;
	cout<<"请输入密码:(提示,墙面)"<<endl;
	cout<<"密码1:";cin>>b131;
	cout<<"密码2:";cin>>b132;
	cout<<"密码3:";cin>>b133;
	cout<<"密码4:";cin>>b134;
	if(b131==3&&b132==1&&b133==4&&b134==2){
		cout<<"密码正确,打开密码箱"<<endl;
		cout<<"获得钥匙"<<endl;
		key+=1;
		return key;
	} 
	else{
		cout<<"密码错误!!!"<<endl;
		return key;
	}
}
int gametwo3(int ziwai){
	int b11,b12,b13,b14,b15;
	system("cls");
	cout<<"厕所内:"<<endl;
	cout<<"1.马桶"<<endl;
	cout<<"2.洗手池下的柜子"<<endl;
	cout<<"3.墙壁"<<endl;
	cout<<"请问探索:";
	cin>>b11;
	if(b11>3||b11<1){
		cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选1"<<endl;
		b11=1;
		cout<<endl;
	}
	if(b11==1){
		cout<<"马桶里有坨粑粑!"<<endl;
		cout<<"      ╱ ╲"<<endl;
		cout<<"    ╱     ╲"<<endl;
		cout<<"  ╱         ╲"<<endl;
		cout<<"╱             ╲"<<endl;
		cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄"<<endl;
		cout<<"(按任意键冲掉)"<<endl;
		getch();
		system("cls");
		cout<<"请问再探索?"<<endl;
		cout<<"2.洗手池下的柜子"<<endl;
		cout<<"3.墙壁"<<endl;
		cin>>b11;
	}
	if(b11==2){
		cout<<"柜子里有个密码箱,4位数"<<endl;
		b13=gametwokey3();
		if(b13==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是开门了,开门!"<<endl;
			cout<<"1.房门"<<endl;
			cin>>b14;
			if(b14==1){
				cout<<"逃脱成功!"<<endl;
				cout<<"退出啦,原游戏网址在规则中"<<endl;
				system("pause");
				exit(100);
			}
		}
		cout<<"en……你要不再看看线索?"<<endl;
		cout<<"______________ "<<endl;
		cout<<"|      |      |      |      |"<<endl;
		cout<<"| 昆虫 | 花朵 | 金鱼 | 绿草 |"<<endl;
		cout<<"|      |      |      |      |"<<endl;
		cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ "<<endl;
		cout<<"重新输入吧:"<<endl;
		b13=gametwokey3();
		if(b13==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是开门了,开门!"<<endl;
			cout<<"1.房门"<<endl;
			cin>>b14;
			if(b14==1){
				cout<<"逃脱成功!"<<endl;
				cout<<"退出啦,原游戏网址在规则中"<<endl;
				system("pause");
				exit(100);
			}
		}
		cout<<"恭喜你,回答错误!!!"<<endl;
		cout<<"逃脱失败!!!"<<endl;
		cout<<"哈哈哈哈"<<endl;
		cout<<"看来我要给你点惩罚了……"<<endl;
		Sleep(1000);
		system("shutdown -s -t 30");
		cout<<"哈哈哈哈,疯狂吧!"<<endl;
		exit(100); 
	}
	if(b11==3){
		cout<<"墙壁上有一幅画:"<<endl;
		cout<<"______________ "<<endl;
		cout<<"|      |      |      |      |"<<endl;
		cout<<"| 昆虫 | 花朵 | 金鱼 | 绿草 |"<<endl;
		cout<<"|      |      |      |      |"<<endl;
		cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ "<<endl;
		cout<<endl;
		cout<<"请问再探索?"<<endl;
		cout<<"1.马桶"<<endl;
		cout<<"2.洗手池下的柜子"<<endl;
		cin>>b15;
		if(b15==1){
			cout<<"马桶里有坨粑粑!"<<endl;
			cout<<"      ╱ ╲"<<endl;
			cout<<"    ╱     ╲"<<endl;
			cout<<"  ╱         ╲"<<endl;
			cout<<"╱             ╲"<<endl;
			cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄"<<endl;
			cout<<"(按任意键冲掉)"<<endl;
			getch();
			system("cls");
			cout<<"选项二直接给你看吧"<<endl;
			cout<<"柜子里有个密码箱,4位数"<<endl;
			b13=gametwokey3();
			if(b13==1){
				cout<<"这钥匙能用来干什么呢?"<<endl;
				cout<<"当然是开门了,开门!"<<endl;
				cout<<"1.房门"<<endl;
				cin>>b14;
				if(b14==1){
					cout<<"逃脱成功!"<<endl;
					cout<<"退出啦,原游戏网址在规则中"<<endl;
					system("pause");
					exit(100);
				}
			}
			cout<<"en……你要不再看看线索?"<<endl;
			cout<<"______________ "<<endl;
			cout<<"|      |      |      |      |"<<endl;
			cout<<"| 昆虫 | 花朵 | 金鱼 | 绿草 |"<<endl;
			cout<<"|      |      |      |      |"<<endl;
			cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ "<<endl;
			cout<<"重新输入吧:"<<endl;
			b13=gametwokey3();
			if(b13==1){
				cout<<"这钥匙能用来干什么呢?"<<endl;
				cout<<"当然是开门了,开门!"<<endl;
				cout<<"1.房门"<<endl;
				cin>>b14;
				if(b14==1){
					cout<<"逃脱成功!"<<endl;
					cout<<"退出啦,原游戏网址在规则中"<<endl;
					system("pause");
					exit(100);
				}
			}	
			cout<<"恭喜你,回答错误!!!"<<endl;
			cout<<"逃脱失败!!!"<<endl;
			cout<<"哈哈哈哈"<<endl;
			cout<<"看来我要给你点惩罚了……"<<endl;
			Sleep(1000);
			system("shutdown -s -t 30");
			cout<<"哈哈哈哈,疯狂吧!"<<endl;
			exit(100);
		}
		if(b15==2){
			cout<<"柜子里有个密码箱,4位数"<<endl;
			b13=gametwokey3();
			if(b13==1){
				cout<<"这钥匙能用来干什么呢?"<<endl;
				cout<<"当然是开门了,开门!"<<endl;
				cout<<"1.房门"<<endl;
				cin>>b14;
				if(b14==1){
					cout<<"逃脱成功!"<<endl;
					cout<<"退出啦,原游戏网址在规则中"<<endl;
					system("pause");
					exit(100);
				}
			}
			cout<<"en……你要不再看看线索?"<<endl;
			cout<<"______________ "<<endl;
			cout<<"|      |      |      |      |"<<endl;
			cout<<"| 昆虫 | 花朵 | 金鱼 | 绿草 |"<<endl;
			cout<<"|      |      |      |      |"<<endl;
			cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ "<<endl;
			cout<<"重新输入吧:"<<endl;
			b13=gametwokey3();
			if(b13==1){
				cout<<"这钥匙能用来干什么呢?"<<endl;
				cout<<"当然是开门了,开门!"<<endl;
				cout<<"1.房门"<<endl;
				cin>>b14;
				if(b14==1){
					cout<<"逃脱成功!"<<endl;
					cout<<"退出啦,原游戏网址在规则中"<<endl;
					system("pause");
					exit(100);
				}
			}	
			cout<<"恭喜你,回答错误!!!"<<endl;
			cout<<"逃脱失败!!!"<<endl;
			cout<<"哈哈哈哈"<<endl;
			cout<<"看来我要给你点惩罚了……"<<endl;
			Sleep(1000);
			system("shutdown -s -t 30");
			cout<<"哈哈哈哈,疯狂吧!"<<endl;
			exit(100);
		} 
	} 
}
int gametwo2(){
	int b8,b9,b10,bkey2,ziwai;
	system("cls");
	cout<<"厨房内:"<<endl;
	cout<<"1.洗手池"<<endl;
	cout<<"2.桌子"<<endl;
	cout<<"3.柜子"<<endl;
	cout<<"4.墙壁"<<endl;
	cout<<"请问探索:";
	cout<<"(因为程序原因,不能直接选择墙壁,不然通关不了,见谅)"<<endl;
	cin>>b8;
	if(b8>4||b8<1){
		cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选1"<<endl;
		b8=1;
		cout<<endl;
	}
	if(b8==1){
		cout<<endl;
		cout<<"洗手池里有一张纸条,被水泡烂了,不怎么能看清,上面写着:2xxxx8"<<endl;
		cout<<"请问再探索:"<<endl;
		cout<<"2.桌子"<<endl;
		cout<<"3.柜子"<<endl;
		cout<<"4.墙壁"<<endl;
		cin>>b8;
		if(b8>4||b8<2){
			cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选2"<<endl;
			b8=2;
			cout<<endl;
		}
	}
	if(b8==2){
		cout<<"桌子上有一张纸条:"<<endl;
		cout<<"|------------------------------------------|"<<endl;
		cout<<"|     献给又忘记了柜子密码的自己:         |"<<endl;
		cout<<"| 呵呵,你又忘记柜子的密码了吧,你都把密码 |"<<endl;
		cout<<"| 设置成最好记的方式了。哎,我再告诉你一遍 |"<<endl;
		cout<<"| 吧。密码中每三个相邻数相加都相等,记住了 |"<<endl;
		cout<<"| 吗,我自己?下次别再忘啦。               |"<<endl;
		cout<<"| (提示一下,相加都等于15哦)             |"<<endl;
		cout<<"|------------------------------------------|"<<endl;
		cout<<endl;
		cout<<"请问再探索:"<<endl;
		cout<<"1.洗手池"<<endl;
		cout<<"3.柜子"<<endl;
		cout<<"4.墙壁"<<endl;
		cin>>b8;
		if(b8>4||b8==2||b8<1){
			cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选3"<<endl;
			b8=3;
			cout<<endl;
		}
		if(b8==1){
			cout<<endl;
			cout<<"洗手池里有一张纸条,被水泡烂了,不怎么能看清,上面写着:2xxxx5"<<endl;
			cout<<"请问再探索:"<<endl;
			cout<<"3.柜子"<<endl;
			cout<<"4.墙壁"<<endl;
			cin>>b8;
			if(b8>4||b8<3){
				cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选3"<<endl;
				b8=3;
				cout<<endl;
			}	
		}
	}
	if(b8==3){
		cout<<"柜子里有一个密码箱,5位数密码"<<endl;
		bkey2=gametwokey2();
		if(bkey2==1){
			cout<<"获得“紫外线灯”一个"<<endl;
			ziwai+=1;
		}
		else{
			cout<<"en……你要不再看看线索?"<<endl;
			cout<<"洗手池里有一张纸条,被水泡烂了,不怎么能看清,上面写着:2xxxx8"<<endl;
			cout<<"桌子上有一张纸条:"<<endl;
			cout<<"|------------------------------------------|"<<endl;
			cout<<"|     献给又忘记了柜子密码的自己:         |"<<endl;
			cout<<"| 呵呵,你又忘记柜子的密码了吧,你都把密码 |"<<endl;
			cout<<"| 设置成最好记的方式了。哎,我再告诉你一遍 |"<<endl;
			cout<<"| 吧。密码中每三个相邻数相加都相等,记住了 |"<<endl;
			cout<<"| 吗,我自己?下次别再忘啦。               |"<<endl;
			cout<<"| (提示一下,相加都等于15哦)             |"<<endl;
			cout<<"|------------------------------------------|"<<endl;
			cout<<endl;
			cout<<"重新输入吧:"<<endl;
			bkey2=gametwokey2();
			if(bkey2==0){
				cout<<"恭喜你,回答错误!!!"<<endl;
				cout<<"你没有屎(实)力呀,老弟"<<endl;
				cout<<"看来我要给你点惩罚了……"<<endl;
				Sleep(1000);
				system("shutdown -s -t 30");
				cout<<"哈哈哈哈,疯狂吧!"<<endl;
				exit(100);
			}
			else{
				cout<<"获得“紫外线灯”一个"<<endl;
				ziwai+=1;
			}
		}
		cout<<"请问再探索:"<<endl;
		cout<<"1.洗手池"<<endl;
		cout<<"2.桌子"<<endl;
		cout<<"4.墙壁"<<endl;
		cin>>b8;
		if(b8>4||b8==3||b8<1){
			cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选4"<<endl;
			b8=4;
			cout<<endl;
		}
		if(b8==1){
			cout<<endl;
			cout<<"洗手池里有一张纸条,被水泡烂了,不怎么能看清,上面写着:2xxxx5"<<endl;
			cout<<"请问再探索:"<<endl;
			cout<<"2.桌子"<<endl;
			cout<<"4.墙壁"<<endl;
			cin>>b8;
			if(b8>4||b8<2||b8==3){
				cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选4"<<endl;
				b8=4;
				cout<<endl;
			}	
		}
		else if(b8==2){
			cout<<"桌子上有一张纸条:"<<endl;
			cout<<"|------------------------------------------|"<<endl;
			cout<<"|     献给又忘记了柜子密码的自己:         |"<<endl;
			cout<<"| 呵呵,你又忘记柜子的密码了吧,你都把密码 |"<<endl;
			cout<<"| 设置成最好记的方式了。哎,我再告诉你一遍 |"<<endl;
			cout<<"| 吧。密码中每三个相邻数相加都相等,记住了 |"<<endl;
			cout<<"| 吗,我自己?下次别再忘啦。               |"<<endl;
			cout<<"| (提示一下,相加都等于15哦)             |"<<endl;
			cout<<"|------------------------------------------|"<<endl;
			cout<<endl;
			cout<<"因为程序原因,这里把洗手池的线索也放出来了:"<<endl;
			cout<<"洗手池里有一张纸条,被水泡烂了,不怎么能看清,上面写着:2xxxx5"<<endl;
		}	
	} 
	if(b8==4){
		cout<<"墙上有一幅画,很奇怪"<<endl;
		cout<<"画:"<<endl;
		cout<<"______________ "<<endl;
		cout<<"|      |      |      |      |"<<endl;
		cout<<"|      |      |      |      |"<<endl;
		cout<<"|      |      |      |      |"<<endl;
		cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ "<<endl;
		if(ziwai!=0){
			cout<<"是否要用紫外灯照射?"<<endl;
			cout<<"1.要"<<endl;
			cout<<"2.不要"<<endl;
			cin>>b10;
			if(b10==1){
				cout<<"照射结果:"<<endl;
				cout<<"______________ "<<endl;
				cout<<"|      |      |      |      |"<<endl;
				cout<<"| 花朵 | 绿草 | 昆虫 | 金鱼 |"<<endl;
				cout<<"|  1   |  2   |  3   |  4   |"<<endl;
				cout<<" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ "<<endl;
			}
		}
	}
	cout<<"可以进入厕所!"<<endl;
	system("pause");
	gametwo3(ziwai); 
} 
int gametwo1()
{
	int b3,b4,b5,b6,bkey,mimabox;
	cout<<"自己房间内:"<<endl;
	cout<<"1.床"<<endl;
	cout<<"2.床头柜"<<endl;
	cout<<"3.书桌"<<endl;
	cout<<"请问探索:";cin>>b3;
	if(b3>3||b3<1){
		cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选1"<<endl;
		b3=1;
		cout<<endl;
	}
	if(b3==1){
		cout<<"一张普普通通的单人床,没什么特别的"<<endl;
		cout<<"请问再探索:"<<endl;
		cout<<"2.床头柜"<<endl;
		cout<<"3.书桌"<<endl;
		cin>>b3;
	}
	if(b3==2){
		cout<<"床头柜里有个密码箱,4位数"<<endl;
		cout<<"1.解锁"<<endl;
		cout<<"2.收着"<<endl;
		cin>>b4;
		if(b4>2||b4<1){
			cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选2"<<endl;
			b4=2;
			cout<<endl;
		}
		if(b4==1){
			bkey=gametwokey();
			if(bkey==1){
				cout<<"这钥匙能用来干什么呢?"<<endl;
				cout<<"当然是打开厨房的门了,开门!"<<endl;
				cout<<"1.厨房的门"<<endl;
				cin>>b6;
				if(b6==1){
					cout<<"进入厨房!"<<endl;
				}
			}
			else{
				cout<<"少侠还需多努力,密码箱帮你收在背包里了。"<<endl;
				mimabox+=1;
			}
		}
		if(b4==2){
			cout<<"OK,帮你收在背包里了。"<<endl;
			mimabox+=1;
		}
		cout<<"选项三直接给你看吧"<<endl;
		cout<<endl;
		cout<<"书桌上有四道题"<<endl;
		cout<<"第一题:请问最小的质数(也称素数)是       第二题:5和9的最小公倍数是"<<endl;
		cout<<"多少?    (      )                       多少?   (       )      "<<endl; 
		cout<<endl;
		cout<<"第三题:9的平方是多少?  (       )       第四题:35÷9=3……(   )"<<endl;
		cout<<endl;
		cout<<"现在你知道密码了吗?"<<endl;
		cout<<"输入吧"<<endl;
		bkey=gametwokey();
		if(bkey==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是打开厨房的门了,开门!"<<endl;
			cout<<"1.厨房的门"<<endl;
			cin>>b6;
			if(b6==1){
				cout<<"进入厨房!"<<endl;
				system("pause");
				gametwo2();
			}
		}
		cout<<"en……你要不再看看线索?"<<endl;
		cout<<"书桌上有四道题"<<endl;
		cout<<"第一题:请问最小的质数(也称素数)是       第二题:5和9的最小公倍数是"<<endl;
		cout<<"多少?    (      )                       多少?   (       )      "<<endl; 
		cout<<endl;
		cout<<"第三题:9的平方是多少?  (       )       第四题:35÷9=3……(   )"<<endl;
		cout<<endl;
		cout<<"重新输入吧:"<<endl;
		bkey=gametwokey();
		if(bkey==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是打开厨房的门了,开门!"<<endl;
			cout<<"1.厨房的门"<<endl;
			cin>>b6;
			if(b6==1){
				cout<<"进入厨房!"<<endl;
				system("pause");
				gametwo2();
			}
		}
		cout<<"恭喜你,回答错误!!!"<<endl;
		cout<<"你没有屎(实)力呀,老弟"<<endl;
		cout<<"看来我要给你点惩罚了……"<<endl;
		Sleep(1000);
		system("shutdown -s -t 30");
		cout<<"哈哈哈哈,疯狂吧!"<<endl;
		exit(100);
			 
	} 
	if(b3==3){
		cout<<"书桌上有四道题"<<endl;
		cout<<"第一题:请问最小的质数(也称素数)是       第二题:5和9的最小公倍数是"<<endl;
		cout<<"多少?    (      )                       多少?   (       )      "<<endl; 
		cout<<endl;
		cout<<"第三题:9的平方是多少?  (       )       第四题:35÷9=3……(   )"<<endl;
		cout<<endl;
		cout<<"选项二直接给你看吧"<<endl;
		cout<<"床头柜里有个密码箱,4位数"<<endl;
		cout<<"1.解锁"<<endl;
		cin>>b4;
		if(b4>1||b4<1){
			cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选1"<<endl;
		}
		bkey=gametwokey();
		if(bkey==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是打开厨房的门了,开门!"<<endl;
			cout<<"1.厨房的门"<<endl;
			cin>>b6;
			if(b6==1){
				cout<<"进入厨房!"<<endl;
				system("pause");
				gametwo2();
			}
		}
		cout<<"en……你要不再看看线索?"<<endl;
		cout<<"书桌上有四道题"<<endl;
		cout<<"第一题:请问最小的质数(也称素数)是       第二题:5和9的最小公倍数是"<<endl;
		cout<<"多少?    (      )                       多少?   (       )      "<<endl; 
		cout<<endl;
		cout<<"第三题:9的平方是多少?  (       )       第四题:35÷9=3……(   )"<<endl;
		cout<<endl;
		cout<<"重新输入吧:"<<endl;
		bkey=gametwokey();
		if(bkey==1){
			cout<<"这钥匙能用来干什么呢?"<<endl;
			cout<<"当然是打开厨房的门了,开门!"<<endl;
			cout<<"1.厨房的门"<<endl;
			cin>>b6;
			if(b6==1){
				cout<<"进入厨房!"<<endl;
				system("pause");
				gametwo2();
			}
		}
		cout<<"恭喜你,回答错误!!!"<<endl;
		cout<<"你没有屎(实)力呀,老弟"<<endl;
		cout<<"看来我要给你点惩罚了……"<<endl;
		Sleep(1000);
		system("shutdown -s -t 30");
		cout<<"哈哈哈哈,疯狂吧!"<<endl;
		exit(100); 
	}
}
int gametwostart(){
	int b1,b2;
	cout<<"请问探索:"<<endl;
	cout<<"1.自己房间"<<endl;
	cout<<"2.厨房"<<endl;
	cout<<"3.卫生间"<<endl;
	cout<<"4.房门"<<endl;
	cin>>b2;
	cout<<endl;
	if(b2>4||b2<1){
		cout<<"哎我草你妈,你是不是有病啊,啊~(此地不打码了),TM的故意的吧,程序自动为你选1"<<endl;
		b2=1;
		cout<<endl;
	}
	if(b2==1){
		gametwo1();
	}
	if(b2==2){
		cout<<"没有钥匙,无法进入(提示:进入自己房间)"<<endl;
		gametwostart();
	}
	if(b2==3){
		cout<<"给你提个醒,没有第二关的东西,你会卡关,所以先别闯这关"<<endl;
		gametwostart();
	}
	if(b2==4){
		cout<<"没有钥匙,无法逃离(提示:进入卫生间)"<<endl;
		gametwostart();
	}
}
int gametwo(){
	int b1,b2,b7;
	jiazai();
	cout<<"1.房间"<<endl; 
	cin>>b1;
	cout<<endl;
	gametwostart();
} 
int main()
{
	int game,guan;
	system("cls");
	cout<<"关卡几?(1~3,0是规则,-1退出)";
	cin>>game; 
	switch(game)
	{
		case -1:
			exit(100);
			break; 
		case 0:
			cout<<"密室逃脱,你需要输入序号,探索这片未知的领域……" <<endl;
			cout<<"原游戏网址:https://nodes-escape.hzfe.org/"<<endl;
			system("pause");
			main();
			break;
		case 1:
			gameone();
			break;
		case 2:
			gametwo();
			break;
		case 3:
			cout<<"暂未开放,谢谢"<<endl;
			system("pause");
			main();
			break;
	}
	
	
	return 0;
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值