问题标题: 酷町堂:战神对决小游戏

0
0
已解决
朱优扬
朱优扬
中级天翼
中级天翼
#include <iostream>
#include <windows.h>
#include <conio.h>
#include <time.h>
#include <cstdio>
#define bluebanana false 
#define bluebananas false 
#define bluebananass false 
#define bluebananasss false 
#define MAX 42
#define do 495
using namespace std;
string cz;
int nkkg;
int yzcnt,ytcnt,ywcnt;
bool zzzj=false,zzzzj=false;
int cntjm,cntjt,cntjj,cntjz,cntjl,cntwjzj=10,cntch,cntchb;
int cnt,wzjdlcnt,cntj,cntcnt,cnt1,guaixuet,gxts,guaixue,gxs;
int cntqq,cntmt,cnttk,cntjk,cntzs,cntlb;
int yingcang,yingcang1;
int maxnz=1,minnz=9,maxn=14,minn=1,minn1=1,maxn1=3,minnyc=1,maxnyc=10;
int ans,ans2,ansycdt,ansjy;
bool xw=false,xm=false,yx=false,yt=false,hs=false,hw=false;
bool c1p1=false,c1p2=false,c5p1=false,c5p2=false,c6p1=false,c6p2=false;
string c61,c62,c63,c64,c65,c66,c67;
string zuihouyigestring;
string mmppcc;
bool zc1=false,zc2=false,zc3=false,zc4=false,zc5=false,zc6=false,zc7=false;
bool c1=false,c2=false,c3=false,c4=false,c5=false,c6=false,c7=false;
bool b1=false,b2=false,b3=false,b4=false;
bool xcc=1,xcc1=1,xcc2=1,xcc3=1;
int wx=70;
int kg=2,kg1=2,kg2=2,kg3=2;
char tianqixuanze,tianqixuanze1,tianqixuanze2,tianqixuanze3;
char yidong,yidong1,yidong2,yidong3;
long long jinbi=200;
char a,b; 
bool bluebananaz=false;
bool lhz=false,hxt=false,bst=false,lhx=false;
bool zlhz=false,zhxt=false,zbst=false,zlhx=false;
string fq;
void maoxian(){
	system("cls"); 
	cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
	system("pause");
	cnt++;
	nkkg=10;
			cntcnt=0;
			guaixue=(cnt-1)*10+30;
			gxs=(cnt-1)*10+30;
			kg=2;
			wx=70;
				while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg-=1;
					}
					else if(yidong=='d'){
						kg+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑"<<"     ";
						} 
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=true;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=true;
							Sleep(1000); 
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				while(1){
					system("cls");
					if(wx<=0){
						yzcnt++;
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixue<=0){
						cout<<"\n你赢了!";
						jinbi+=60;
						b1=true;
						Sleep(1000); 
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					
					cout<<"战神("<<guaixue<<"/"<<gxs<<")";
					
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixue-=30;
								wx-=2;
							} 
							else if(xm==true){
								guaixue-=50;
								wx-=2;
							} 
							else{ 
								guaixue-=15;
								wx-=2;
							}
						} 
						else if(zc2==true){
							guaixue-=12;
							wx-=3;
						}
						else if(zc3==true){
							guaixue-=8;
							wx-=5;
						}
						else if(zc4==true){
							guaixue-=12;
							wx-=3;
						}
						else if(zc5==true){
							if(yx==true){
								guaixue-=30;
								wx-=2;
							}
							else if(yt==true){
								guaixue-=47;
								wx-=2;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixue-=14;
									wx-=2;
								}
								else{
									guaixue-=17;
									wx-=2;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixue-=39;
								wx-=2;
							}
							else if(hw==true){
								guaixue-=28;
								wx-=2;
							}
							else{ 
								guaixue-=16;
								wx-=2;
							}
						}
						else if(zc7==true){
							guaixue-=7;
							wx-=5;
						}
						else if(zzzzj==true){
							guaixue-=6666666666666666666;
							wx-=1;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc6=false;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zzzzj=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zzzzj=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zzzzj=true;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true)
							wx+=20;
						else if(zhxt==true)
							wx+=18;
						else if(zlhx==true)
							wx+=24;
						else if(bst==true)
							wx+=35;
					}
				}
				return;
}
void jiesh(string a){
	system("cls");
	if(a=="游戏结束"&&bluebanana==false&&bluebananas==false&&bluebananass==false&&bluebananasss==false)
		bluebananaz=true;
	return; 
} 
void out(string x){
	if(bluebananaz==true)
		cout<<x;
	return;
}
int main(){
	int fqans;
	for(int i=1;i<=9;i++)
		cout<<"\t";
	cout<<"游戏加载中\n";
	for(int i=1;i<=MAX;i++){
		cout<<"----";
		Sleep(100);
	}
	Sleep(500);
	system("cls");
	cout<<"欢迎来到战神对决";
	Sleep(1500);
	while(1){ 
	system("cls");
	system("COLOR 07");
	cout<<"A.冒险模式    B.武器抽奖    C.法器抽奖    D.商店    E.仓库    F.娱乐模式";
	cout<<"    G.剧情    H.工作台    I.MC名言    J.退出";
	a=getch();
	if(a=='A')
		maoxian();	
	else if(a=='B'){
		while(1){ 
				system("cls");
				cerr<<"20金币一次\n";
				cerr<<"你有";
				cerr<<jinbi;
				char choujiang; 
				cerr<<"个金币\n\n按H抽奖";
				choujiang=getch();
				if(choujiang=='H'){
					if(jinbi>=20){
						system("cls"); 
						srand((int)time(NULL));
						ans=minn+rand()%(maxn-minn+1);
						if(ans==1){	
							cout<<"你抽到了 笑到最后 ";
							c61="A.笑到最后";
							c1=true;
							Sleep(2000);
							jinbi-=20;
							break; 
						}
						else if(ans>=2&&ans<=3){
							cout<<"你抽到了阔剑";
							c62="B.阔剑";
							c2=true; 
							Sleep(2000);
							jinbi-=20;
							break; 
						} 
						else if(ans>=6&&ans<=8){
							cout<<"你抽到了雷霆之锤";
							c63="C.雷霆之锤";
							c3=true;
							Sleep(2000);
							jinbi-=20;
							break; 
						} 
							else if(ans==4||ans==5){
								cout<<"你抽到了龙爪";
								c64="D.龙爪";
								c4=true;
								Sleep(2000);
								jinbi-=20;
								break; 
							} 
							else if(ans==9){
								cout<<"你抽到了 月神匕首 ";
								c65="E.月神匕首";
								c5=true;
								Sleep(2000);
								jinbi-=20;
								break; 
							} 
							else if(ans==10){
								cout<<"你抽到了 寒霜獠牙 ";
								c66="F.寒霜獠牙";
								c6=true;
								Sleep(2000);
								jinbi-=20;
								break;
							} 
							else{
							cout<<"你抽到了镐";
								c67="G.镐";
								c7=true;
								Sleep(2000);
								jinbi-=20;
								break; 
							} 
						}
						else{
							system("cls"); 
							cout<<"金币不足!";
							Sleep(1000);
							break; 
						}
					}
				}
	}
	else if(a=='C'){
		while(1){ 
		char fqc;
		system("cls");
		cout<<"50金币一次\n"; 
		cout<<"按H进行法器抽奖"; 
		srand((int)time(NULL));
		fqans=1+rand()%4;
		fqc=getch();
		if(jinbi>=30){ 
		if(fqans==1){
			system("cls");
			cout<<"你抽到了 灵魂治疗器 ";
			Sleep(1000); 
			jinbi-=30;
			lhz=true;
			break; 
		}
		else if(fqans==2){
			system("cls");
			cout<<"你抽到了 回血图腾 ";
			Sleep(1000); 
			jinbi-=30;
			hxt=true; 
			break; 
		}
		else if(fqans==3){
			system("cls");
			cout<<"你抽到了	灵魂回血器 ";
			Sleep(1000); 
			lhx=true;
			jinbi-=30; 
			break; 
		}
		else{
			system("cls");
			cout<<"你抽到了 不死图腾 ";
			Sleep(1000); 
			jinbi-=30;
			bst=true; 
			break; 
		}
		}
		else{
			cout<<"金币不足!"; 
			Sleep(1000); 
			break; 
		}
		} 
	} 
	else if(a=='D'){
		system("cls");
				char pifu; 
				while(1){ 
					cout<<"A.笑到最后--五爪金龙(150金币)        B.笑到最后--梦幻火箭(160金币)        C.月神匕首--生命誓言(80金币)        D.月神匕首--特工banana(110金币)       \nE.寒霜獠牙--时之沙漏(120金币)        F.寒霜獠牙--百万伏特(90金币)        ";
					cout<<"G.附魔金苹果(40金币)        H.煤炭块(1金币)        I.铁块(2金币)        \nJ.金块(3金币)        K.钻石块(4金币)        L.绿宝石块(5金币)        M.退出";
					pifu=getch();
					if(pifu=='A'){
						if(jinbi>=150&&c1==true){
							system("cls"); 
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=150;
							c1p1=true; 
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='B'){
						if(jinbi>=160&&c1==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000);
							jinbi-=160; 
							c1p2=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000);
							break; 
						}
					}
					else if(pifu=='C'){
						if(jinbi>=80&&c5==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=80;
							c5p1=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='D'){
						if(jinbi>=110&&c5==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=110;
							c5p2=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='E'){
						if(jinbi>=120&&c6==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=120;
							c6p1=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='F'){
						if(jinbi>=90&&c6==true){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=90;
							c6p2=true;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						} 
					}
					else if(pifu=='G'){
						if(jinbi>=50){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=50;
							cntj++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}	
					}
					else if(pifu=='H'){
						if(jinbi>=1){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=1;
							cntmt++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='I'){
						if(jinbi>=2){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=2;
							cnttk++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='J'){
						if(jinbi>=3){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=3;
							cntjk++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='K'){
						if(jinbi>=4){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=4;
							cntzs++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else if(pifu=='L'){
						if(jinbi>=5){
							system("cls");
							cout<<"购买成功!";
							Sleep(1000); 
							jinbi-=5;
							cntlb++;
							break;
						}
						else{
							system("cls");
							cout<<"购买失败!";
							Sleep(1000); 
							break;
						}
					} 
					else
						break;
				}
	}
	else if(a=='E'){
		while(1){ 
					system("cls"); 
					if(c1p1==true){
						cout<<"A.笑到最后--五爪金龙    ";
					}
					if(c1p2==true){
						cout<<"B.笑到最后--梦幻火箭    ";																																																																																																																																																																																																																																			
					} 
					if(c5p1==true){
						cout<<"C.月神匕首--生命誓言    ";
					}
					if(c5p2==true){ 
						cout<<"D.月神匕首--特工banana    ";
					}
					if(c6p1==true){
						cout<<"E.寒霜獠牙--时之沙漏    ";
					}
					if(c6p2==true){
						cout<<"F.寒霜獠牙--百万伏特    ";
					}
				zuihouyigestring=getch();
				if(zuihouyigestring=="A"){
					if(c1p1==true){ 
						cout<<"已装备";
						Sleep(1000); 
						xw=true;
						xm=false;
						yx=false;
						yt=false;			
						hs=false;
						hw=false;
						break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					}
				}
				else if(zuihouyigestring=="B"){
					if(c1p2==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=true;
					yx=false;
					yt=false;
					hs=false;
					hw=false; 
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="C"){
					if(c5p1==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=false;
					yx=true;
					yt=false;
					hs=false;
					hw=false;
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="D"){
					if(c5p2==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=false;
					yx=false;
					yt=true;
					hs=false;
					hw=false;
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="E"){
					if(c6p1==true){ 
					cout<<"已装备";
					Sleep(1000); 
					xw=false;
					xm=false;
					yx=false;
					yt=false;
					hs=true;
					hw=false;
					break;
					}
					else{
						cout<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else if(zuihouyigestring=="F"){
					if(c6p2==true){ 
						cout<<"已装备";
						Sleep(1000); 
						xw=false;
						xm=false;
						yx=false;
						yt=false;
						hs=false;
						hw=true;
						break;
					}
					else{
						cerr<<"你没有这把武器";
						Sleep(1000);
						break;
					} 
				}
				else
					break;
	}
	}
	else if(a=='F'){
		while(true){ 
		system("COLOR 07");
		system("cls"); 
		cout<<"A.泰坦(挑战)		B.谁是小偷		C.王者基多拉(挑战)		D.怪物大乱斗		E.退出";
		b=getch(); 
		if(b=='A'){
			system("cls");
			cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
			system("pause");
			wx=70;
			kg2=2;
			cnt1++;
			cntcnt=0;
			nkkg=10; 
			guaixuet=(cnt1-1)*5+100;
			gxts=(cnt1-1)*5+100;
			while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg2+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg2-=1;
					}
					else if(yidong=='d'){
						kg2+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zzzzj=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc7=false;
							zc6=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zzzzj=false;
							zc4=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zzzzj=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zzzzj=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				while(1){
					system("cls");
					if(wx<=0){
						ytcnt++;
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						cout<<"\n你赢了!";
						cntj+=5;
						b1=true;
						Sleep(1000); 
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"泰坦("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=30;
								wx-=2;
							} 
							else if(xm==true){
								guaixuet-=50;
								wx-=2;
							} 
							else{ 
								guaixuet-=15;
								wx-=2;
							}
						} 
						else if(zc2==true){
							guaixuet-=12;
							wx-=3;
						}
						else if(zc3==true){
							guaixuet-=8;
							wx-=5;
						}
						else if(zc4==true){
							guaixuet-=12;
							wx-=3;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=30;
								wx-=2;
							}
							else if(yt==true){
								guaixuet-=47;
								wx-=2;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=14;
									wx-=2;
								}
								else{
									guaixuet-=17;
									wx-=2;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=39;
								wx-=2;
							}
							else if(hw==true){
								guaixuet-=28;
								wx-=2;
							}
							else{ 
								guaixuet-=16;
								wx-=2;
							}
						}
						else if(zc7==true){
							guaixuet-=7;
							wx-=5;
						}
						else if(zzzzj==true){
							guaixuet-=66666666;
							wx-=1;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑"<<"      ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zzzzj=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000);
							zzzzj=false; 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zc7=false;
							zzzzj=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zzzzj=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zzzzj=true;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true)
							wx+=20;
						else if(zhxt==true)
							wx+=18;
						else if(zlhx==true)
							wx+=24;
						else if(bst==true)
							wx+=35;
					}
				} 
		}
		else if(b=='B'){
			system("cls");
			int ansh,ansl;
			srand((int)time(NULL));
			ansh=1+rand()%(7);
			srand((int)time(NULL));
			ansl=1+rand()%(38);
			cout<<" \t\t\t\t\t\t1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38\n";
			for(int i=1;i<=7;i++){
			cout<<i;
			cout<<"\t\t\t\t\t\t";
			for(int j=1;j<=38;j++){
				if(ansh==i&&ansl==j){
					cout<<'y'<<"  ";
					continue;
				}
				cout<<"x"<<"  ";
			}
			cout<<endl;
			}
			int th,tl; 
			cout<<"请输入小偷的横列:";
			cin>>th>>tl;
			if(th==ansh&&tl==ansl){
				cout<<"找对了!";
				Sleep(1000);
				cntj+=5; 
			}
			else{
				cout<<"找错了!";
				Sleep(1000); 
			}
		} 
		else if(b=='C'){
			system("cls");
			cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
			system("pause");
			wx=70;
			kg2=2;
			nkkg=10;
			wzjdlcnt++;
			srand((int)time(NULL));
			ansjy=1+rand()%10;
			if(ansjy==1){ 
				guaixuet=30000+(wzjdlcnt-1)*50;
				gxts=30000+(wzjdlcnt-1)*50;
			}
			else{ 
				guaixuet=9000+(wzjdlcnt-1)*99;
				gxts=9000+(wzjdlcnt-1)*99;
			}
			while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg2+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg2-=1;
					}
					else if(yidong=='d'){
						kg2+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zzzzj=false; 
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false; 
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zzzzj=false; 
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false; 
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zc7=false;
							zzzzj=false; 
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false; 
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=true; 
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						ywcnt++;
						cout<<"\n你赢了,金币增加6w,金苹果增加1w";
						cntj+=10000;
						jinbi+=60000;
						b1=true;
						Sleep(1000); 
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"王者基多拉("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=5000;
							wx-=2;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				} 
		}
		else if(b=='D'){
			system("cls");
			cout<<"a键向后移动,d键向前移动,s打开背包(z第几个装备或法器),q打开法器背包,w打boss,按r使用法器,e吃附魔金苹果\n";
			system("pause");
			wx=70;
			kg2=2;
			nkkg=10;
			while(1){ 
					system("COLOR a0"); 
					system("cls");
					if(kg2+2+1>=73){
						break;
					} 
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2;i++){
						cout<<" ";
					}
					cout<<"你";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					yidong=getch();
					if(yidong=='a'){
						kg2-=1;
					}
					else if(yidong=='d'){
						kg2+=1;
					}
					else if(yidong=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"     ";
						}
						if(zzzj==true){
							cout<<"H.最终之剑     ";
						}
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zzzzj=false; 
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zc7=false;
							zc6=false;
							zzzzj=false; 
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zc5=false;
							zzzzj=false; 
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=true;
							zc6=false;
							zzzzj=false; 
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zc7=false;
							zzzzj=false; 
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false; 
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=true; 
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					} 
					else if(yidong=='e'){
						if(cntj!=0){ 
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000);
						}
					}
					else{//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
				} 
				int dklpslboss;
				guaixuet=5500;
				gxts=5500; 
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"恐惧魔王("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=3000;
							wx-=10;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=7000;
				gxts=7000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"NOLL("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=3000;
							wx-=10;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=9000;
				gxts=9000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"死灵骑士("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=2500;
							wx-=12;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=10000;
				gxts=10000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						break; 
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"303("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=1000;
							wx-=10;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
				guaixuet=40000;
				gxts=40000;
				while(1){
					system("cls");
					if(wx<=0){
						cout<<"\n你输了!";
						Sleep(1000);
						break; 
					}
					else if(guaixuet<=0){
						cout<<"\n你赢了!";
						jinbi+=1000000;
						Sleep(1000);
						break;
					}
					for(int i=1;i<=wx;i++){
						cout<<"★";
					}
					for(int i=1;i<=19;i++){ 
						cout<<endl; 
					}
					for(int i=1;i<=kg2+7;i++){
						cout<<" ";
					}
					cout<<"你";
					for(int i=1;i<=nkkg;i++){
						cout<<" ";
					}
					cout<<"Him("<<guaixuet<<"/"<<gxts<<")";
					cout<<endl; 
					for(int i=1;i<=168;i++){ 
						cout<<"▉";
					}
					dklpslboss=getch();
					if(dklpslboss=='w'){
						cntcnt++;
						if(zc1==true){
							if(xw==true){
								guaixuet-=10;
								wx-=10;
							} 
							else if(xm==true){
								guaixuet-=15;
								wx-=14;
							} 
							else{ 
								guaixuet-=7;
								wx-=13;
							}
						} 
						else if(zc2==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc3==true){
							guaixuet-=5;
							wx-=20;
						}
						else if(zc4==true){
							guaixuet-=4;
							wx-=20;
						}
						else if(zc5==true){
							if(yx==true){
								guaixuet-=10;
								wx-=15;
							}
							else if(yt==true){
								guaixuet-=15;
								wx-=14;
							}
							else{ 
								srand((int)time(NULL));
								ans2=minn+rand()%(maxn1-minn1+1);
								if(ans2==1||ans2==2){
									guaixuet-=5;
									wx-=18;
								}
								else{
									guaixuet-=5;
									wx-=20;
								}
							}
						}
						else if(zc6==true){
							if(hs==true){
								guaixuet-=10;
								wx-=10;
							}
							else if(hw==true){
								guaixuet-=12;
								wx-=12;
							}
							else{ 
								guaixuet-=4;
								wx-=19;
							}
						}
						else if(zc7==true){
							guaixuet-=4;
							wx-=10000;
						}
						else if(zzzzj==true){
							guaixuet-=1000;
							wx-=10;
						}
					}
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='s'){
						string zhuangbei;
						if(c1==true){
							cout<<c61<<"     ";
						}
						if(c2==true){
							cout<<c62<<"     ";
						}
						if(c3==true){
							cout<<c63<<"     ";
						}
						if(c4==true){
							cout<<c64<<"     ";
						}
						if(c5==true){
							cout<<c65<<"     ";
						}
						if(c6==true){
							cout<<c66<<"     ";
						}
						if(c7==true){
							cout<<c67<<"      ";	
						}
						if(zzzj==true){
							cout<<"H.最终之剑      ";
						} 
						cin>>zhuangbei;
						if(zhuangbei=="z1"&&c1==true){
							cout<<"已装备";
							zc1=true;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=false;
							zc7=false;
							zzzzj=false; 
							Sleep(1000);
						} 
						else if(zhuangbei=="z2"&&c2==true){
							cout<<"已装备";
							zc1=false;
							zc2=true;
							zc3=false;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000);
						} 
						else if(zhuangbei=="z3"&&c3==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=true;
							zc4=false;
							zc5=false;
							zzzzj=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z4"&&c4==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=true;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z5"&&c5==true){
							cout<<"已装备";	
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=true;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z6"&&c6==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zc5=false;
							zc6=true;
							zzzzj=false;
							zc7=false;
							Sleep(1000); 
						}
						else if(zhuangbei=="z7"&&c7==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=false;
							zc5=false;
							zc6=false;
							zc7=true;
							Sleep(1000); 
						}
						else if(zhuangbei=="z8"&&zzzj==true){
							cout<<"已装备";
							zc1=false;
							zc2=false;
							zc3=false;
							zc4=false;
							zzzzj=true;
							zc5=false;
							zc6=false;
							zc7=false;
							Sleep(1000); 
						}
					}	
					else if(dklpslboss=='a'){
						kg--;
						nkkg++;
						if(nkkg<4){
							wx-=2;
						}
					}
					else if(dklpslboss=='d'){
						kg++;
						nkkg--;
						if(nkkg<=1){
							nkkg=2;
						}
					}
					else if(dklpslboss=='e'){
						if(cntj!=0){ 
						if(guaixuet<=gxts){ 
							if(guaixuet+5>gxts)
								guaixuet=gxts;
							else
								guaixuet+=5;
						}
						wx+=25;
						cntj--;
						cout<<"已吃";
						Sleep(1000); 
						}
						else{
							cout<<"附魔金苹果吃完了";
							Sleep(1000); 
						}
					}
					else if(dklpslboss=='q'){//zlhz=false,zhxt=false,zbst=false,zlhx=false;
						if(lhz==true) 
							cout<<"A.灵魂治疗器 ";
						if(hxt==true)
							cout<<"B.回血图腾 ";
						if(lhx==true)
							cout<<"C.灵魂回血器 ";
						if(bst==true)
							cout<<"D.不死图腾";
						cin>>fq;
						if(fq=="z1"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=true;
							zhxt=false; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z2"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=true; 
							zlhx=false;
							zbst=false;
						}
						else if(fq=="z3"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=true;
							zbst=false;
						}
						else if(fq=="z4"){
							cout<<"已装备";
							Sleep(1000);
							zlhz=false;
							zhxt=false; 
							zlhx=false;
							zbst=true;
						}
					}
					else{
						if(zlhz==true){
							wx+=20;
							if((guaixuet+20/2+20/4)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=20/2+20/4;
						}
						else if(zhxt==true){ 
							wx+=18;
							if((guaixuet+18/2+4)>gxts){
								guaixuet=gxts;
							}
							else
								guaixuet+=18/2+4;
						}
						else if(zlhx==true){ 
							wx+=24;
							if((guaixuet+24/2+24/4)>gxts)
								guaixuet==gxts;
							else
								guaixuet+=24/2+24/4;
						}
						else if(bst==true){ 
							wx+=34;
							if((guaixuet+34/2+8)>gxts)
								guaixuet=gxts;
							else
								guaixuet+=34/2+8;	
						}
					}
				}
		} 
		else{
			break;
		}
		}
	}
	else if(a=='G'){
		system("cls");
		cout<<"One day,some pirate came to you village.\n";
		Sleep(2500);
		cout<<"They hold you villages family kill it.\n";
		Sleep(2500);
		cout<<"You village was choose the hero revenge.\n";
		Sleep(2500);
		cout<<"This people maybe is someone else \n";
		Sleep(2500);
		cout<<"maybe he/she is……";
		Sleep(2500);
		cout<<"you\n";
		Sleep(2500);
		Sleep(500);
		system("cls");
		for(int i=1;i<=22;i++){
			cout<<'\n';
		}
		for(int i=1;i<=9;i++){
			cout<<'\t';
		}
		cout<<"战神对决\n";
		for(int i=1;i<=3;i++){
			if(i==1){ 
				system("COLOR a6");Sleep(500);
				system("COLOR d2");Sleep(500);
			}
			else if(i==2){
				system("COLOR 35");Sleep(500);
				system("COLOR b7");Sleep(500);
			}
			else{
				system("COLOR e4");Sleep(500);
				system("COLOR f9");Sleep(500);
			}
		} 
		Beep(do,2000);
		Sleep(2000);	
	} 
	else if(a=='H'){
		string cdcf; 
		system("cls");
		cout<<"|---------------------------------|\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|---------------------------------|               |-----------|\n";
		cout<<"|          |          |           |               |           |\n";
		cout<<"|          |          |           |     =====     |           |\n";
		cout<<"|          |          |           |               |           |\n";
		cout<<"|          |          |           |               |           |\n";
		cout<<"|---------------------------------|               |-----------|\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|          |          |           |\n";
		cout<<"|---------------------------------|\n";
		cout<<"你要做什么?"; 
		cin>>cdcf;
		if(cdcf=="奇点-煤"){
			if(cntmt>=1000){
				cntmt-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjm++; 
			}
			else{
				system("cls");
				cout<<"煤炭块少了";
				Sleep(1000);
			}
		} 
		else if(cdcf=="奇点-铁"){
			if(cnttk>=1000){
				cnttk-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjt++; 
			}
			else{
				system("cls");
				cout<<"铁块少了";
				Sleep(1000);
			}
		} 
		else if(cdcf=="奇点-金"){
			if(cntjk>=1000){
				cntjk-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjj++; 
			}
			else{
				system("cls");
				cout<<"金块少了";
				Sleep(1000);
			}
		}
		else if(cdcf=="奇点-钻石"){
			if(cntzs>=1000){
				cntzs-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjz++; 
			}
			else{
				system("cls");
				cout<<"钻石块少了";
				Sleep(1000);
			}
		}
		else if(cdcf=="奇点-绿宝石"){
			if(cntlb>=1000){
				cntlb-=1000;
				system("cls");
				cout<<"成功";
				Sleep(1000); 
				cntjl++; 
			}
			else{
				system("cls");
				cout<<"绿宝石块少了";
				Sleep(1000);
			}
		}
		else if(cdcf=="无尽催化剂"){
			if(cntjm>=1&&cntjt>=1&&cntjj>=1&&cntjz>=1&&cntjl>=1){
				cntjm-=1;
				cntjt-=1;
				cntjj-=1;
				cntjz-=1;
				cntjl-=1;
				cntch++;
				cout<<"成功!"; 
				Sleep(1000);
			} 
			else{ 
				cout<<"奇点少了!";
				Sleep(1000); 
			}
		} 
		else if(cdcf=="无尽催化剂棒"){
			if(cntch>=2){
				cntch-=2;
				cntchb++;
				cout<<"成功";
				Sleep(1000); 
			}
			else{
				cout<<"无尽催化剂少了";
				Sleep(1000);
			}
		} 
		else if(cdcf=="无尽之剑"){
			if(cntch>=2&&cntchb>=1){
				cntwjzj++;
				cntch-=2;
				cntchb-=1;
				cout<<"成功(这把剑只能合成最终之剑,没有伤害)";
				Sleep(2000); 
			}
			else{
				cout<<"物资少了";
				Sleep(1000); 
			}
		}
		else if(cdcf=="最终之剑"){
			if(cntwjzj>=5){
				cntwjzj-=5;
				zzzj=true;
				cout<<"成功(伤害:666666666)";
				Sleep(2000); 
			} 
			else{
				cout<<"无尽之剑少了";
				Sleep(1000); 
			}
		}
		else{
			continue;
		}
	}
	else if(a=='I'){
		system("cls");
		char sss;
		cout<<"A.打败战神1次可查看\n";
		cout<<"B.打败战神10次可查看\n";
		cout<<"C.打败泰坦1次可查看\n";
		cout<<"D.打败泰坦10次可查看\n";
		cout<<"E.打败王者基多拉1次可查看\n";
		cout<<"F.打败王者基多拉3次可查看\n";
		sss=getch();
		//不可以看代码!
		if(sss=='A'&&yzcnt>=1){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);
			cout<<"你的傲慢终会使你失败\n			--溺尸王\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='B'&&yzcnt>=10){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);
			cout<<"即使倒下,也不会认输\n			--史蒂夫\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='C'&&ytcnt>=1){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN);
			cout<<"我相信正义永远不败\n		  --史蒂夫\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='D'&&ytcnt>=10){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN | FOREGROUND_BLUE);
			cout<<"友谊的力量你无法想象\n		  --爱丽克斯\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='E'&&ywcnt>=1){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);
			cout<<"所有的快乐都是建立在别人的痛苦之上\n						--恐惧魔王\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
		else if(sss=='F'&&ywcnt>=3){
			system("cls");
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);
			cout<<"我们当中,最伟大的,偏偏是仆人\n						--芥末\n";
			SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
			system("pause");
		}
	} 
	else if(a=='J'){
		jiesh("游戏结束");
		out("游戏结束");
		exit(0);
	}
	} 
	return 0;
}

注:现在不建议用工作台,因为还没修好。还有,打怪类的是四界传说里的思路,另外加了许多模式,大家可以进游戏体验一下

纯音乐推荐:time back、她的微笑、Victory

朱优扬在2020-10-07 20:16:35追加了内容
#include <iostream>
#include <windows.h>
#include <conio.h>
#include <string>
#include <ctime>
#define sss 9*9
using namespace std;
char a;
int ans,cnt,ansx,ansy,ansx1,c,d;
int ansy1,ansx2,ansy2,ansx3,ansy3,ansx4,ansy4;
int b[10][10],fs,cnty,cnts;
int out(string x){
	for(int i=0;i<x.size();i++){
		cout<<x[i];
		Sleep(100);
	}
} 
int main(){
	cout<<"游戏加载中……";
	Sleep(5000);
	while(1){ 
	system("cls");
	cout<<"A.开始	B.查询状态	C.退出";
	a=getch();
	if(a=='A'){
		for(int i=1;i<=9;i++){
			for(int j=1;j<=9;j++){
				b[i][j]=0;
			}
		}
		srand((int)time(NULL));
		ansx=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansy=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansx1=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansy1=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansx2=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansy2=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansx3=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansy3=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansx4=1+rand()%(9-1+1);
		srand((int)time(NULL));
		ansy4=1+rand()%(9-1+1);
		b[ansx][ansy]=100;
		b[ansx1][ansy1]=100;
		b[ansx2][ansy2]=100;
		b[ansx3][ansy3]=100;
		b[ansx4][ansy4]=100;
		for(int i=1;i<=9;i++){
			for(int j=1;j<=9;j++){
				if(b[i][j]!=100){
					srand((int)time(NULL));
					ans=1+rand()%(3);
					b[i][j]=ans;
				}
			}
		}
		cnt=0;
		fs=0;
		while(1){ 
		system("cls"); 
		for(int i=1;i<=9;i++){
			for(int j=1;j<=9;j++){
				if(b[i][j]!=110)
					cout<<"* ";
				else
					cout<<"  ";
			}
			cout<<endl;
		}
		cout<<"请输出横和列(按横→列的顺序):";
		cin>>c>>d;
		if(b[c][d]!=100&&b[c][d]!=110&&c<=9&&d<=9){
			switch(b[c][d]){
				case 3:fs+=3;break;
				case 2:fs+=2;break;
				case 1:fs+=1;break;
			} 
			system("cls");
			cout<<"答对了!";
			b[c][d]=110;
			cnt++;
			Sleep(1000); 
			system("cls");
			if(cnt==sss-5){
				out("好苹果已经被你找完啦!");
				Sleep(1000);
				cout<<endl;
				out("你的分数是:");
				cout<<fs<<endl;
				system("pause");
				break;
				cnty++;
			}
		}
		else if(b[c][d]==110){ 
			system("cls");
			cout<<"重了哦!";
			Sleep(1000); 
		}
		else if(c>9||d>9){
			
		}
		else{
			system("cls"); 
			cout<<"答错了!\n";
			cnts++;
			Sleep(1000);
			out("你的分数是:");
			cout<<fs<<endl;
			system("pause");
			break;
		}
		}
	}
	else if(a=='B'){
		system("cls");
		cout<<"你赢了"<<cnty<<"盘,"<<"输了"<<cnts<<"盘。\n";
		system("pause");
	}
	else if(a=='C'){
		system("cls");
		SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);
		cout<<"欢迎下次游玩\n";
		SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);
		system("pause"); 
		break;
	}
	}
	return 0;
}

吃苹果,全看人品

朱优扬在2020-10-07 20:18:51追加了内容

大家多给点建议啊!


0
已采纳
荣光峰
荣光峰
资深光能
资深光能

牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛牛

佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服佩服

0
邓犁
邓犁
高级守护
高级守护

666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666

0
王子逸
王子逸
新手天翼
新手天翼

还可以·就是还有很多问题

ps:你给四界传说版权费了吗?

多加改进相信可以成为问答的几大游戏之一 

王子逸在2020-10-08 14:56:33追加了内容

你的输入

太不方便了

都要大写

输入问题比较多

0
武建豪
武建豪
中级天翼
中级天翼

为什么我一进去就闪退

0
0
余彦文
余彦文
初级光能
初级光能

cao不能复制,一复制电脑就炸了!!!

0
朱优扬
朱优扬
中级天翼
中级天翼

顶顶顶顶顶顶!!!!!!!!!!!!!!!

0
0
0
我要回答