首页 > 编程语言 >真的求求点赞+关注+收藏了!!(c++小游戏3)(还有其它的)

真的求求点赞+关注+收藏了!!(c++小游戏3)(还有其它的)

时间:2024-07-17 21:55:38浏览次数:15  
标签:br Slowsay int Sun c++ else 小游戏 && 点赞

13、球球大作战

//奇怪的游戏
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
void pass() {
CONSOLE_CURSOR_INFO cursor_info = {1, 0};
SetConsoleCursorInfo(
GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
}
int jjda;
void ys()
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),(++jjda)%15+1);
} 
void gotoxy(int x,int y) 
{
COORD c= {y-1,x-1};
SetConsoleCursorPosition(
GetStdHandle(STD_OUTPUT_HANDLE),c);
}
void ys(int yyin)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),yyin);
}
int oop,ool;
int ooj,oof;
int a[1000][1000]=
{
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},};
int i=4,j=4,k,l,o,p;
int kl=20,ow=20,fs;
int main(void)
{
system("mode con cols=111");
pass();
SetConsoleTitle("球球大作战");
for(k=0;k<100;k++)
{
for(l=0;l<100;l++)
{
if(a[k][l]==0)
{
ys(); 
printf("."); 
} 
} 
}
for(;;) 
{
gotoxy(1,1);
ys(10);
printf("1P的大小:%dkg\n\n",o);
gotoxy(2,1);
ys(11);
printf("2P的大小:%dkg\n\n",fs);
gotoxy(i,j);
ys(10);
printf("●");
gotoxy(kl,ow);
ys(11);
printf("●");
if(i==kl&&j==ow)
{
if(o>fs)
{
system("cls"); 
printf("1P Win!");
Sleep(1000);
break; 
}
else
if(o<fs)
{
system("cls"); 
printf("2P Win!");
Sleep(1000);
break; 
}
else
if(o==fs)
{
system("cls"); 
printf("平局!");
Sleep(1000);
break; 
}
}
p=getch();
Sleep((o+fs)/20);
if(p==119)
{
i--;
gotoxy(i+1,j);
printf(" ");
if(a[i][j]==0)
{
o++;
a[i+1][j]=1; 
}
else
if(a[i][j]!=0)
{
o+0; 
} 
}
if(p==115)
{
i++;
gotoxy(i-1,j);
printf(" ");
if(a[i][j]==0)
{
o++;
a[i-1][j]=1; 
}
else
if(a[i][j]!=0)
{
o+0; 
} 
}
if(p==97)
{
j--;
if(a[i][j]==0)
{
o++;
a[i][j+1]=1; 
}
else
if(a[i][j]!=0)
{
o+0; 
} 
}
if(p==100)
{
j++;
if(a[i][j]==0)
{
o++;
a[i][j-1]=1; 
}
else
if(a[i][j]!=0)
{
o+0; 
} 
}
if(p==72)
{
kl--;
gotoxy(kl+1,ow);
printf(" ");
if(a[kl][ow]==0)
{
fs++;
a[kl+1][ow]=1; 
}
else
if(a[kl][ow]!=0)
{
fs+0; 
} 
}
if(p==80)
{
kl++;
gotoxy(kl-1,ow);
printf(" ");
if(a[kl][ow]==0)
{
fs++;
a[kl-1][ow]=1; 
}
else
if(a[kl][ow]!=0)
{
fs+0; 
} 
}
if(p==75)
{
ow--;
if(a[kl][ow]==0)
{
fs++;
a[kl][ow+1]=1; 
}
else
if(a[kl][ow]!=0)
{
fs+0; 
} 
}
if(p==77)
{
ow++;
if(a[kl][ow]==0)
{
fs++;
a[kl][ow-1]=1; 
}
else
if(a[kl][ow]!=0)
{
fs+0; 
} 
}
if(p==27)
{
break; 
}
srand(time(NULL));
oop=rand()%20+1;
srand(time(NULL));
ool=rand()%20+1;
gotoxy(oop,ool);
} 
}

14、人生重开模拟器

#include<stdio.h>
#include<windows.h>
#include<conio.h>
#include<stdlib.h>
#include<time.h>
#define LEN 30
#define WID 25
#include<bits/stdc++.h>
#include<iostream>
#include<fstream>
#include<algorithm>
#include<windows.h>
#include<cstdlib>
#include<ctime>
#include<conio.h>
#include<iostream>
#include<fstream>
#include<algorithm>
#include <string>
#include <Windowsx.h>
#include <cmath>
#include <sstream>
#include <iomanip>
#include <vector>
#include <olectl.h>
using namespace std;
int w[15],b[9999],u=1,jk[99];
string sbsb="tanyu";
int main()
{ unsigned seed;
srand(seed);
int fd,po=0,rt=0;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"谭";Sleep(500);

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"羽";Sleep(500); 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"工";Sleep(500); 

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
cout<<"作";Sleep(500);

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"室"<<endl;Sleep(500);

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_RED|FOREGROUND_GREEN); 
int yu=200,ui=100,io=100; 
cout<<"人生重开模拟器(修仙版5.5版):进入游戏请输入:1 进入调查问卷请输入:2 退出游戏请输入:0"<<endl; 
int a=0,s=0,d=0,f=0,g=0,h=0,j=0,k=0,l=0,qs=0,sq=0;//悟出大道数a,金之大道s,木之大道d,水之大道f,火之大道g,土之大道h,生命大道j,毁灭大道k,混沌大道l,107821:密码。
int q;
int as=0;
int zxc=100;
cin>>q;
if(q!=1&&q!=2&&q!=0){

for(int i=1;i<=999999999;i++){
if(i>=5){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"想搞事!?我陪你!"<<endl;
Sleep(100);
cout<<"给你5秒反思和退出,别怪作者心狠手辣!";
Sleep(5000);
for(;;){
MessageBox(NULL,"windows遇到了一个无法解决的问题。","windows未响应。",MB_ABORTRETRYIGNORE+48); 
}} 
if(q==1||q==2||q==0){break;}
else{
MessageBox(NULL,"您没有输入1 或者2 或者0 哦!","输入错误!",MB_OK+48);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"人生重开模拟器(修仙版5.0版):进入游戏请输入:1 进入调查问卷请输入:2 退出游戏请输入:0"<<endl;
cin>>q;
} 

}
}
if(q==1){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"Ok!我们来进入吧!"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
for(int i=1;i<=20;i++){
if(i>=1&&i<=10||i>=17&&i<=20){Sleep(200);cout<<"█";}
else {Sleep(350);cout<<"█";}

}
for(int i=0;i<1000;i++){cout<<endl;}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"ok,请选择天赋点(天赋点40):"<<endl;
int da=0;
int z=0,x=0,c=0,v=0;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值: ";
cin>>z; 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力: ";
cin>>x;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数: ";
cin>>c;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康:";
cin>>v;
cout<<endl; 
if(z==12&&x==12&&c==6){
//a=6;s=1;d=1;f=1;g=1;h=1;j=1;k=1;l=1;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
cout<<"你触发了时间大道:"<<endl;
cout<<"输入的时间越少,速度更快(输入1000== 一秒)"<<endl;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"凡人时间: ";
cin>>yu;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<endl<<"仙人时间: ";
cin>>ui;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<endl<<"神者时间: ";
cin>>io;
}
if(z+x+c+v>40){
for(;;){ 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"ok,请选择天赋点(天赋点40):"<<endl;
cout<<"请正常选择或总天赋点小于等于40。"<<endl; 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值: ";
cin>>z; 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力: ";
cin>>x;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数: ";
cin>>c;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康:";
cin>>v;
cout<<endl;
if(z+x+c<=30){break;}

} 

}

if(z>10){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"你出生了,是男孩。"<<endl; 
}
else{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE); 
cout<<"你出生了,是女孩。"<<endl; 
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值:"<<z<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力:"<<x<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数:"<<c<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康:"<<v<<" "<<endl<<endl;
c=c*100; 
Sleep(300); 
for(int i=1;i<100;i++){
int rt=0;
int a=rand()%50+1;
if(2>v&&v<2&&c>=100000){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"第"<<i<<"年:"<<"你因为突发病或事件死了.(注意身体和运气)"<<endl;da=1;break;}
if(a==1){cout<<"第"<<i<<"年:"<<"你捡到了养颜宝典,颜值加3."<<endl;z=z+3;rt=1;}
if(a==2){cout<<"第"<<i<<"年:"<<"你捡到0.2斤铁,钱数加200."<<endl;c=c+200;rt=1;}
if(a==3){cout<<"第"<<i<<"年:"<<"你被人诈骗了,钱数减600."<<endl;c=c-600;rt=1;}
if(a==4){cout<<"第"<<i<<"年:"<<"你学了一本书,智力加3."<<endl;x=x+3;rt=1;}
if(a==5){cout<<"第"<<i<<"年:"<<"你捡到了一个钻戒,钱数加2000."<<endl;c=c+2000;rt=1;}
if(a==6&&jk[1]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:有一个人被车撞了。他死前大喊”不!我可是10世转修者!“"<<endl;jk[1]++;rt=1;}
if(a==7&&jk[2]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:陈忆轩一天刷10道难度三的题."<<endl;jk[2]++;rt=1;}
if(a==8&&jk[3]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:阮烁恒天天看《无职转生~到了异世界就拿出真本事~》!!!"<<endl;jk[3]++;rt=1;}
if(a==9&&jk[4]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:作者于2021年12月20日与羽浩腾一起合作。"<<endl;jk[4]++;rt=1;}
if(a==10&&jk[5]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:阮烁恒习的欧啦神功后天天把作者打的****。"<<endl;jk[5]++;rt=1;}
if(a==6&&jk[1]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==7&&jk[2]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==8&&jk[3]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==9&&jk[4]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==10&&jk[5]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==11&&jk[6]==0){cout<<"第"<<i<<"年:"<<"日本被和谐成月本."<<endl;jk[6]++;rt=1;}
if(a==12&&jk[7]==0){cout<<"第"<<i<<"年:"<<"中国GPS超过美国."<<endl;jk[7]++;rt=1;}
if(a==11&&jk[6]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==12&&jk[7]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==18){cout<<"第"<<i<<"年:"<<"你被特别培训,全方面提升3."<<endl;z=z+3;x=x+3;v=v+3;rt=1;}
if(a==19){cout<<"第"<<i<<"年:"<<"你不小心用小刀划了脸,颜值减5,健康减1."<<endl;z=z-5;rt=1;v=v-1;}
if(a==20){cout<<"第"<<i<<"年:"<<"你不小心被车撞了脑袋,智力减5,健康减5."<<endl;x=x-5;rt=1;v=v-5;}
if(a==21){cout<<"第"<<i<<"年:"<<"你患上了感冒,健康减2."<<endl;v=v-2;rt=1;}
if(a==22){cout<<"第"<<i<<"年:"<<"你坚持锻炼,健康加2."<<endl;v=v+2;rt=1;}
if(a==23){cout<<"第"<<i<<"年:"<<"因为你惹了一只狼狗,所以你每天被狗追着跑...健康加3."<<endl;v=v+3;rt=1;}
if(a==24){cout<<"第"<<i<<"年:"<<"因为你勤奋工作,所以钱数加"<<c/100<<endl;c=c+c/100;rt=1;}
if(a==25&&jk[8]==0&&c>=100000){cout<<"第"<<i<<"年:"<<"你向乞丐买了一本《古仙图》.钱数减100000."<<endl;c=c-100000;po=po+1;jk[8]++;rt=1;}
if(a==25&&jk[8]==1&&c>=100000){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(a==26){cout<<"第"<<i<<"年:"<<"你捡到了100元"<<endl;c=c+100;rt=1;}
if(a==27){cout<<"第"<<i<<"年:"<<"你突然病倒了!健康减5!"<<endl;v=v-5;}
if(a==28&&z>=20){cout<<"第"<<i<<"年:"<<"你迷到了一大堆人!"<<endl;}
if(a==29&&jk[9]==0){cout<<"第"<<i<<"年:"<<"【绝密消息】:中国发现了外星文明!"<<endl;x=x+10;jk[9]++;}
if(a==29&&jk[9]==1){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;rt=1;}
if(rt==0){cout<<"第"<<i<<"年:"<<"平平无奇的一年."<<endl;}
if(c<=50){cout<<"你破产了!!全方面-2."<<endl;z=z-2;x=x-2;v=v-2;}
z=z+0.1;x=x+0.1;c=c+c/100;v=v+0.1;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"颜值:"<<z<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"智力:"<<x<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"钱数:"<<c<<" ";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"健康:"<<v<<" "<<endl<<endl; 
Sleep(yu);
}

int ghj=0;
if(da==1){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);cout<<"寿元终.";} 
else{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"第100年:你打开了小盒子,发现了《修仙功》这本修仙功法,开始修仙之路,寿元提升至150年。";
if(po>0){cout<<"你发现当初买的《古仙图》比《修仙功》效果更好!";}
cout<<endl;int qw=150;
//int i;
u=u+(z*0.01)+(x*0.01)+(v*0.1);
for(int i=101;i<=qw;i++){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
if(250>=u){
int rt=0;

fd=rand()%50+1;
if(fd==1){cout<<"第"<<i<<"年:"<<"你找到灵气聚集之处,修为大幅度上升。"<<endl;u=u+1.5;rt=1;}
if(fd==2){cout<<"第"<<i<<"年:"<<"你找到灵气聚集之处,修为大幅度上升。"<<endl;u=u+1.5;rt=1;}
if(fd==3){cout<<"第"<<i<<"年:"<<"你找到异果,修为小幅度上升。"<<endl;u=u+1;rt=1;}
if(fd==4){cout<<"第"<<i<<"年:"<<"你找到异果,修为小幅度上升。"<<endl;u=u+1;rt=1;}
if(fd==5){cout<<"第"<<i<<"年:"<<"你找到异果,修为小幅度上升。"<<endl;u=u+1;rt=1;}
if(fd==6){cout<<"第"<<i<<"年:"<<"你走火入魔,修为大幅度下降。"<<endl;u=u-2;rt=1;}
if(fd==7){cout<<"第"<<i<<"年:"<<"你走火入魔,修为大幅度下降。"<<endl;u=u-2;rt=1;}
if(fd==8){cout<<"第"<<i<<"年:"<<"你杀了一位筑基期修仙者,修为大幅度上升。"<<endl;u=u+1.5;rt=1;}
if(fd==9){cout<<"第"<<i<<"年:"<<"你杀了一位筑基期修仙者,修为大幅度上升。"<<endl;u=u+1.5;rt=1;}
if(fd==10&&ghj<=2){cout<<"第"<<i<<"年:"<<"你获得渡劫失败的渡劫期修仙者传承,修为提升X。"<<endl;u=u+50;ghj++;rt=1;}else {if(fd==10&&ghj<=2){cout<<"第"<<i<<"年:"<<"修行..."<<endl;u=u+0.2;rt=1;}}
if(fd==11){cout<<"第"<<i<<"年:"<<"你悟了一些《神仙图》的内容,修为加快提升。"<<endl;po=po+0.1;rt=1;}
if(rt==0){cout<<"第"<<i<<"年:"<<"修行..."<<endl;u=u+0.2;}

}
else{
int gd; 
gd=rand()%100+1;
if(gd==1&&sq==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟透了伟大的马克思主义。"<<endl;u=u+1;sq=1;}else{if(gd==1){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}} 
if(gd==2&&qs==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了空手道,好像并没有什么卵用。"<<endl;u=u+1;qs=1;}else{if(gd==2){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}} 
if(gd==3&&s==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了金之大道。"<<endl;u=u+4;s=1;a=a+1;}else{if(gd==3){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}} 
if(gd==4&&d==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了木之大道。"<<endl;u=u+4;d=1;a=a+1;}else{if(gd==4){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}}
if(gd==5&&f==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了水之大道。"<<endl;u=u+4;f=1;a=a+1;}else{if(gd==5){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}} 
if(gd==6&&g==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了火之大道。"<<endl;u=u+4;g=1;a=a+1;}else{if(gd==6){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}}
if(gd==7&&h==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了土之大道。"<<endl;u=u+4;h=1;a=a+1;}else{if(gd==7){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}}
if(gd==8&&j==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了生命大道。"<<endl;u=u+5;j=1;a=a+1;}else{if(gd==8){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}}
if(gd==9&&k==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了毁灭大道。"<<endl;u=u+5;k=1;a=a+1;}else{if(gd==9){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}}
if(gd==10&&l==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);cout<<"第"<<i<<"年:"<<"你悟出了混沌大道。"<<endl;u=u+5;l=1;a=a+1;}else{if(gd==10){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+0.2;}}
if(gd!=1&&gd!=2&&gd!=3&&gd!=4&&gd!=5&&gd!=6&&gd!=7&&gd!=8&&gd!=9&&gd!=10){cout<<"第"<<i<<"年:"<<"悟道..."<<endl;u=u+1;} 
}
u=u+po; 
//SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
//cout<<"灵力点:"<<u<<endl;

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
if(u>=2&&u<4&&b[1]==0){cout<<"突破凝气初期1星,寿元提升至160年。"<<endl;qw=160;b[1]=1;}
if(u>=4&&u<6&&b[2]==0){cout<<"突破凝气初期2星,寿元提升至170年。"<<endl;qw=170;b[2]=1;}
if(u>=6&&u<8&&b[3]==0){cout<<"突破凝气初期3星,寿元提升至180年。"<<endl;qw=180;b[3]=1;}
if(u>=8&&u<10&&b[4]==0){cout<<"突破凝气初期4星,寿元提升至185年。"<<endl;qw=185;b[4]=1;}
if(u>=10&&u<12&&b[5]==0){cout<<"突破凝气初期5星,寿元提升至190年。"<<endl;qw=190;b[5]=1;}
if(u>=12&&u<14&&b[6]==0){cout<<"突破凝气中期1星,寿元提升至200年。"<<endl;qw=200;b[6]=1;}
if(u>=14&&u<16&&b[7]==0){cout<<"突破凝气中期2星,寿元提升至210年。"<<endl;qw=210;b[7]=1;}
if(u>=16&&u<18&&b[8]==0){cout<<"突破凝气中期3星,寿元提升至220年。"<<endl;qw=220;b[8]=1;}
if(u>=18&&u<20&&b[9]==0){cout<<"突破凝气中期4星,寿元提升至230年。"<<endl;qw=230;b[9]=1;}
if(u>=20&&u<22&&b[10]==0){cout<<"突破凝气中期5星,寿元提升至240年。"<<endl;qw=240;b[10]=1;}
if(u>=22&&u<24&&b[11]==0){cout<<"突破凝气高期1星,寿元提升至250年。"<<endl;qw=250;b[11]=1;}
if(u>=24&&u<26&&b[12]==0){cout<<"突破凝气高期2星,寿元提升至260年。"<<endl;qw=260;b[12]=1;}
if(u>=26&&u<28&&b[13]==0){cout<<"突破凝气高期3星,寿元提升至270年。"<<endl;qw=270;b[13]=1;}
if(u>=28&&u<30&&b[14]==0){cout<<"突破凝气高期4星,寿元提升至280年。"<<endl;qw=280;b[14]=1;}
if(u>=30&&u<35&&b[15]==0){cout<<"突破凝气高期5星,寿元提升至290年。"<<endl;qw=290;b[15]=1;}
if(u>=35&&u<37&&b[16]==0){cout<<"突破筑基初期1星,寿元提升至300年。"<<endl;qw=300;b[16]=1;}
if(u>=37&&u<39&&b[17]==0){cout<<"突破筑基初期2星,寿元提升至310年。"<<endl;qw=310;b[17]=1;}
if(u>=39&&u<41&&b[18]==0){cout<<"突破筑基初期3星,寿元提升至320年。"<<endl;qw=320;b[18]=1;}
if(u>=41&&u<43&&b[19]==0){cout<<"突破筑基初期4星,寿元提升至330年。"<<endl;qw=330;b[19]=1;}
if(u>=45&&u<47&&b[20]==0){cout<<"突破筑基初期5星,寿元提升至340年。"<<endl;qw=340;b[20]=1;}
if(u>=47&&u<49&&b[21]==0){cout<<"突破筑基中期1星,寿元提升至350年。"<<endl;qw=350;b[21]=1;}
if(u>=49&&u<51&&b[22]==0){cout<<"突破筑基中期2星,寿元提升至360年。"<<endl;qw=360;b[22]=1;}
if(u>=51&&u<53&&b[23]==0){cout<<"突破筑基中期3星,寿元提升至370年。"<<endl;qw=370;b[23]=1;}
if(u>=55&&u<57&&b[24]==0){cout<<"突破筑基中期4星,寿元提升至380年。"<<endl;qw=380;b[24]=1;}
if(u>=57&&u<59&&b[25]==0){cout<<"突破筑基中期5星,寿元提升至390年。"<<endl;qw=390;b[25]=1;}
if(u>=59&&u<61&&b[26]==0){cout<<"突破筑基高期1星,寿元提升至400年。"<<endl;qw=400;b[26]=1;}
if(u>=61&&u<63&&b[27]==0){cout<<"突破筑基高期2星,寿元提升至410年。"<<endl;qw=410;b[27]=1;}
if(u>=63&&u<65&&b[28]==0){cout<<"突破筑基高期3星,寿元提升至420年。"<<endl;qw=420;b[28]=1;}
if(u>=65&&u<67&&b[29]==0){cout<<"突破筑基高期4星,寿元提升至430年。"<<endl;qw=430;b[29]=1;}
if(u>=69&&u<75&&b[30]==0){cout<<"突破筑基高期5星,寿元提升至440年。"<<endl;qw=440;b[30]=1;}

if(u>=75&&u<78&&b[31]==0){cout<<"突破金丹初期1星,寿元提升至450年。"<<endl;qw=450;b[31]=1;}
if(u>=78&&u<81&&b[32]==0){cout<<"突破金丹初期2星,寿元提升至460年。"<<endl;qw=460;b[32]=1;}
if(u>=81&&u<84&&b[33]==0){cout<<"突破金丹初期3星,寿元提升至470年。"<<endl;qw=470;b[33]=1;}
if(u>=84&&u<87&&b[34]==0){cout<<"突破金丹初期4星,寿元提升至480年。"<<endl;qw=480;b[34]=1;}
if(u>=87&&u<90&&b[35]==0){cout<<"突破金丹初期5星,寿元提升至490年。"<<endl;qw=490;b[35]=1;}
if(u>=90&&u<93&&b[36]==0){cout<<"突破金丹中期1星,寿元提升至500年。"<<endl;qw=500;b[36]=1;}
if(u>=93&&u<96&&b[37]==0){cout<<"突破金丹中期2星,寿元提升至510年。"<<endl;qw=510;b[37]=1;}
if(u>=96&&u<99&&b[38]==0){cout<<"突破金丹中期3星,寿元提升至520年。"<<endl;qw=520;b[38]=1;}
if(u>=99&&u<102&&b[39]==0){cout<<"突破金丹中期4星,寿元提升至530年。"<<endl;qw=530;b[39]=1;}
if(u>=102&&u<105&&b[40]==0){cout<<"突破金丹中期5星,寿元提升至540年。"<<endl;qw=540;b[40]=1;}
if(u>=108&&u<111&&b[41]==0){cout<<"突破金丹高期1星,寿元提升至550年。"<<endl;qw=550;b[41]=1;}
if(u>=111&&u<114&&b[42]==0){cout<<"突破金丹高期2星,寿元提升至560年。"<<endl;qw=560;b[42]=1;}
if(u>=114&&u<117&&b[43]==0){cout<<"突破金丹高期3星,寿元提升至570年。"<<endl;qw=570;b[43]=1;}
if(u>=117&&u<120&&b[44]==0){cout<<"突破金丹高期4星,寿元提升至580年。"<<endl;qw=580;b[44]=1;}
if(u>=120&&u<125&&b[45]==0){cout<<"突破金丹高期5星,寿元提升至590年。"<<endl;qw=590;b[45]=1;}
if(u>=125&&u<130&&b[46]==0){cout<<"突破元婴初期1星,寿元提升至600年。"<<endl;qw=600;b[46]=1;}
if(u>=130&&u<135&&b[47]==0){cout<<"突破元婴初期2星,寿元提升至610年。"<<endl;qw=610;b[47]=1;}
if(u>=135&&u<140&&b[48]==0){cout<<"突破元婴初期3星,寿元提升至620年。"<<endl;qw=620;b[48]=1;}
if(u>=140&&u<145&&b[49]==0){cout<<"突破元婴初期4星,寿元提升至630年。"<<endl;qw=630;b[49]=1;}
if(u>=145&&u<150&&b[50]==0){cout<<"突破元婴初期5星,寿元提升至640年。"<<endl;qw=640;b[50]=1;} 
if(u>=150&&u<155&&b[51]==0){cout<<"突破元婴中期1星,寿元提升至650年。"<<endl;qw=650;b[51]=1;}
if(u>=155&&u<160&&b[52]==0){cout<<"突破元婴中期2星,寿元提升至660年。"<<endl;qw=660;b[52]=1;}
if(u>=160&&u<165&&b[53]==0){cout<<"突破元婴中期3星,寿元提升至670年。"<<endl;qw=670;b[53]=1;}
if(u>=165&&u<170&&b[54]==0){cout<<"突破元婴中期4星,寿元提升至680年。"<<endl;qw=680;b[54]=1;}
if(u>=170&&u<175&&b[55]==0){cout<<"突破元婴中期5星,寿元提升至690年。"<<endl;qw=690;b[55]=1;}
if(u>=175&&u<180&&b[56]==0){cout<<"突破元婴高期1星,寿元提升至700年。"<<endl;qw=700;b[56]=1;}
if(u>=180&&u<185&&b[57]==0){cout<<"突破元婴高期2星,寿元提升至710年。"<<endl;qw=710;b[57]=1;}
if(u>=185&&u<190&&b[58]==0){cout<<"突破元婴高期3星,寿元提升至720年。"<<endl;qw=720;b[58]=1;}
if(u>=190&&u<195&&b[59]==0){cout<<"突破元婴高期4星,寿元提升至730年。"<<endl;qw=730;b[59]=1;}
if(u>=195&&u<200&&b[60]==0){cout<<"突破元婴高期5星,寿元提升至740年。"<<endl;qw=740;b[60]=1;}

if(u>=200&&u<205&&b[61]==0){cout<<"突破化神初期1星,寿元提升至750年。"<<endl;qw=750;b[61]=1;}
if(u>=205&&u<210&&b[62]==0){cout<<"突破化神初期2星,寿元提升至760年。"<<endl;qw=760;b[62]=1;}
if(u>=210&&u<215&&b[63]==0){cout<<"突破化神初期3星,寿元提升至770年。"<<endl;qw=770;b[63]=1;}
if(u>=215&&u<220&&b[64]==0){cout<<"突破化神初期4星,寿元提升至780年。"<<endl;qw=780;b[64]=1;}
if(u>=220&&u<225&&b[65]==0){cout<<"突破化神初期5星,寿元提升至790年。"<<endl;qw=790;b[65]=1;}
if(u>=225&&u<230&&b[66]==0){cout<<"突破化神中期1星,寿元提升至800年。"<<endl;qw=800;b[66]=1;}
if(u>=230&&u<235&&b[67]==0){cout<<"突破化神中期2星,寿元提升至810年。"<<endl;qw=810;b[67]=1;}
if(u>=235&&u<240&&b[68]==0){cout<<"突破化神中期3星,寿元提升至820年。"<<endl;qw=820;b[68]=1;}
if(u>=240&&u<245&&b[69]==0){cout<<"突破化神中期4星,寿元提升至830年。"<<endl;qw=830;b[69]=1;}
if(u>=245&&u<250&&b[70]==0){cout<<"突破化神中期5星,寿元提升至840年。"<<endl;qw=840;b[70]=1;}
if(u>=250&&u<255&&b[71]==0){cout<<"突破化神高期1星,寿元提升至850年。"<<endl;qw=850;b[71]=1;}
if(u>=255&&u<260&&b[72]==0){cout<<"突破化神高期2星,寿元提升至860年。"<<endl;qw=860;b[72]=1;}
if(u>=260&&u<265&&b[73]==0){cout<<"突破化神高期3星,寿元提升至870年。"<<endl;qw=870;b[73]=1;}
if(u>=265&&u<270&&b[74]==0){cout<<"突破化神高期4星,寿元提升至880年。"<<endl;qw=880;b[74]=1;}
if(u>=270&&u<300&&b[75]==0){cout<<"突破化神高期5星,寿元提升至890年。"<<endl;qw=890;b[75]=1;}
if(u>=300&&u<310&&b[76]==0){cout<<"突破炼虚初期1星,寿元提升至900年。"<<endl;qw=900;b[76]=1;}
if(u>=310&&u<320&&b[77]==0){cout<<"突破炼虚初期2星,寿元提升至910年。"<<endl;qw=910;b[77]=1;}
if(u>=320&&u<330&&b[78]==0){cout<<"突破炼虚初期3星,寿元提升至920年。"<<endl;qw=920;b[78]=1;}
if(u>=330&&u<340&&b[79]==0){cout<<"突破炼虚初期4星,寿元提升至930年。"<<endl;qw=930;b[79]=1;}
if(u>=340&&u<350&&b[80]==0){cout<<"突破炼虚初期5星,寿元提升至940年。"<<endl;qw=940;b[80]=1;}
if(u>=350&&u<360&&b[81]==0){cout<<"突破炼虚中期1星,寿元提升至950年。"<<endl;qw=950;b[81]=1;}
if(u>=360&&u<370&&b[82]==0){cout<<"突破炼虚中期2星,寿元提升至960年。"<<endl;qw=960;b[82]=1;}
if(u>=370&&u<380&&b[83]==0){cout<<"突破炼虚中期3星,寿元提升至970年。"<<endl;qw=970;b[83]=1;}
if(u>=380&&u<390&&b[84]==0){cout<<"突破炼虚中期4星,寿元提升至980年。"<<endl;qw=980;b[84]=1;}
if(u>=390&&u<400&&b[85]==0){cout<<"突破炼虚中期5星,寿元提升至990年。"<<endl;qw=990;b[85]=1;}
if(u>=400&&u<410&&b[86]==0){cout<<"突破炼虚高期1星,寿元提升至1000年。"<<endl;qw=1000;b[86]=1;}
if(u>=410&&u<420&&b[87]==0){cout<<"突破炼虚高期2星,寿元提升至1010年。"<<endl;qw=1010;b[87]=1;}
if(u>=420&&u<430&&b[88]==0){cout<<"突破炼虚高期3星,寿元提升至1020年。"<<endl;qw=1020;b[88]=1;}
if(u>=430&&u<440&&b[89]==0){cout<<"突破炼虚高期4星,寿元提升至1030年。"<<endl;qw=1030;b[89]=1;}
if(u>=440&&u<450&&b[90]==0){cout<<"突破炼虚高期5星,寿元提升至1040年。"<<endl;qw=1040;b[90]=1;}

if(u>=450&&u<450&&b[91]==0){cout<<"突破合体初期1星,寿元提升至1050年。"<<endl;qw=1050;b[91]=1;}
if(u>=460&&u<460&&b[92]==0){cout<<"突破合体初期2星,寿元提升至1060年。"<<endl;qw=1060;b[92]=1;}
if(u>=470&&u<470&&b[93]==0){cout<<"突破合体初期3星,寿元提升至1070年。"<<endl;qw=1070;b[93]=1;}
if(u>=480&&u<480&&b[94]==0){cout<<"突破合体初期4星,寿元提升至1080年。"<<endl;qw=1080;b[94]=1;}
if(u>=490&&u<490&&b[95]==0){cout<<"突破合体初期5星,寿元提升至1090年。"<<endl;qw=1090;b[95]=1;}
if(u>=500&&u<500&&b[96]==0){cout<<"突破合体中期1星,寿元提升至1100年。"<<endl;qw=1100;b[96]=1;}
if(u>=510&&u<510&&b[97]==0){cout<<"突破合体中期2星,寿元提升至1110年。"<<endl;qw=1110;b[97]=1;}
if(u>=520&&u<520&&b[98]==0){cout<<"突破合体中期3星,寿元提升至1120年。"<<endl;qw=1120;b[98]=1;}
if(u>=530&&u<530&&b[99]==0){cout<<"突破合体中期4星,寿元提升至1130年。"<<endl;qw=1130;b[99]=1;}
if(u>=540&&u<540&&b[100]==0){cout<<"突破合体中期5星,寿元提升至1140年。"<<endl;qw=1140;b[100]=1;}
if(u>=550&&u<550&&b[101]==0){cout<<"突破合体高期1星,寿元提升至1150年。"<<endl;qw=1150;b[101]=1;}
if(u>=560&&u<560&&b[102]==0){cout<<"突破合体高期2星,寿元提升至1160年。"<<endl;qw=1160;b[102]=1;}
if(u>=570&&u<570&&b[103]==0){cout<<"突破合体高期3星,寿元提升至1170年。"<<endl;qw=1170;b[103]=1;}
if(u>=580&&u<580&&b[104]==0){cout<<"突破合体高期4星,寿元提升至1180年。"<<endl;qw=1180;b[104]=1;}
if(u>=590&&u<590&&b[105]==0){cout<<"突破合体高期5星,寿元提升至1190年。"<<endl;qw=1190;b[105]=1;}
if(u>=600&&u<999&&b[106]==0){cout<<"进入准备渡劫期,寿元提升至1200年。"<<endl;qw=1200;b[106]=1;}
cout<<endl;

Sleep(ui);
} SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"寿元终。"<<endl;
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
int mn=0;
if(ui==100&&u<=999){
cout<<"你一直看过来,一定很累吧?悄悄告诉你,颜值=12,智力=12,钱数=6时可以触发时间大道!"<<endl; 
Sleep(300);
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"开始度劫!!!"<<endl;
Sleep(300);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"金元神劫落下"<<endl;
if(s==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600); 
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
cout<<"木元神劫落下"<<endl;
if(d==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);
cout<<"水元神劫落下"<<endl;
if(f==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"火元神劫落下"<<endl;
if(g==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_RED|FOREGROUND_GREEN);
cout<<"土元神劫落下"<<endl;
if(h==1){cout<<"你抗过了!"<<endl;a=a-1;
Sleep(600);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
cout<<"本源元神劫落下"<<endl;
if(a>=1){cout<<"你抗过了!"<<endl;
}else{mn=1;} 
}else{mn=1;}
}else{mn=1;}
}else{mn=1;}
}else{mn=1;}
}else{mn=1;}


if(mn==1){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);cout<<"你没抗过,被劈死了!";} 
if(mn==0&&u>=550){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);
cout<<"你度劫成功,飞升为仙。你作为“人”的一生结束了!"<<endl;}
else{if(mn==0){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);
cout<<"但是你修为不够,无法飞升,被神用雷劫劈死了!";}} 


int ad;
cout<<"结束请输入ok(小写),管理员测试请输入密码。"<<endl;
string sf;
cin>>sf;
if(sf=="ok"){cout<<"圆满结束!";}
else if(sf=="tanyu"){ad=1;}
else{
cout<<"密码错误,请重新输入!"<<endl;
for(;;){
string qwe;
cout<<"结束请输入ok(小写),管理员测试请输入密码。"<<endl;
cin>>qwe; 
if(qwe=="ok"){cout<<"圆满结束!";break;}
if(qwe=="tanyu"){ad=1;break;}
else {cout<<"密码错误,请重新输入!"<<endl;} 
} 
}
 
 
if(ad==1){
for(int i=1;i<=15;i++){w[i]=0;}
int j=50; 
cout<<"开启修神之路,神寿提升至10千年."<<endl;
int ss=5;
for(int i=1;i<=j;i++){
int kk;
kk=rand()%25+1;
if(kk==1){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==2){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==3){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==4){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==5){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==6){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==7){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==8){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;}
if(kk==9){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==10){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==11){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==12){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==13){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==14){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==15){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==16){cout<<"第"<<i<<"千年:"<<"闭关苦修中……"<<endl;ss=ss+1;} 
if(kk==17){cout<<"第"<<i<<"千年:"<<"你与人强行双修,修为上涨X."<<endl;ss=ss+2;}
if(kk==18){cout<<"第"<<i<<"千年:"<<"你与人强行双修,修为上涨X."<<endl;ss=ss+2;} 
if(kk==19){cout<<"第"<<i<<"千年:"<<"你与人强行双修,修为上涨X."<<endl;ss=ss+2;} 
if(kk==20){cout<<"第"<<i<<"千年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;} 
if(kk==21){cout<<"第"<<i<<"千年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==22){cout<<"第"<<i<<"千年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==23){cout<<"第"<<i<<"千年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==24){cout<<"第"<<i<<"千年:"<<"苦修顿悟修为增长。"<<endl;ss=ss+2;}
if(kk==25){cout<<"第"<<i<<"千年:"<<"听神讲课,顿悟修为增长。"<<endl;ss=ss+5;}

if(w[1]==0&&ss==10||ss>10&&ss<15&&w[1]==0){cout<<"你达到散仙上期,神寿提升到15千年。"<<endl;j=15;w[1]=1;}
if(w[2]==0&&ss==15||ss>15&&ss<20&&w[2]==0){cout<<"你达到散仙中期,神寿提升到20千年。"<<endl;j=20;w[2]=1;}
if(w[3]==0&&ss==20||ss>20&&ss<25&&w[3]==0){cout<<"你达到散仙下期,神寿提升到25千年。"<<endl;j=25;w[3]=1;}
if(w[4]==0&&ss==25||ss>25&&ss<30&&w[4]==0){cout<<"你达到地仙上期,神寿提升到30千年。"<<endl;j=30;w[4]=1;}
if(w[5]==0&&ss==30||ss>30&&ss<35&&w[5]==0){cout<<"你达到地仙中期,神寿提升到35千年。"<<endl;j=35;w[5]=1;}
if(w[6]==0&&ss==35||ss>35&&ss<40&&w[6]==0){cout<<"你达到地仙下期,神寿提升到40千年。"<<endl;j=40;w[6]=1;}
if(w[7]==0&&ss==40||ss>40&&ss<45&&w[7]==0){cout<<"你达到仙人上期,神寿提升到45千年。"<<endl;j=45;w[7]=1;}
if(w[8]==0&&ss==45||ss>45&&ss<50&&w[8]==0){cout<<"你达到仙人中期,神寿提升到50千年。"<<endl;j=50;w[8]=1;}
if(w[9]==0&&ss==50||ss>50&&ss<55&&w[9]==0){cout<<"你达到仙人下期,神寿提升到55千年。"<<endl;j=55;w[9]=1;}
if(w[10]==0&&ss==65||ss>55&&ss<60&&w[10]==0){cout<<"你达到上仙上期,神寿提升到60千年。"<<endl;j=60;w[10]=1;}
if(w[11]==0&&ss==60||ss>60&&ss<70&&w[11]==0){cout<<"你达到上仙中期,神寿提升到65千年。"<<endl;j=65;w[11]=1;}
if(w[12]==0&&ss==70||ss>70&&ss<80&&w[12]==0){cout<<"你达到上仙下期,神寿提升到70千年。"<<endl;j=70;w[12]=1;}
if(w[13]==0&&ss==80||ss>80&&ss<90&&w[13]==0){cout<<"你达到金仙上期,神寿提升到75千年。"<<endl;j=75;w[13]=1;}
if(w[14]==0&&ss==90||ss>90&&ss<100&&w[14]==0){cout<<"你达到金仙中期,神寿提升到80千年。"<<endl;j=80;w[14]=1;}
if(w[15]==0&&ss==100||ss>100&&ss<110&&w[15]==0){cout<<"你达到金仙下期,神寿提升到85千年。"<<endl;j=85;w[15]=1;}

cout<<endl;
Sleep(io);
}
cout<<"寿元终!";
}} 
if(q==2){
cout<<"正在进入调查问卷,请稍后......"<<endl;
for(int i=1;i<=20;i++){
if(i>=1&&i<=10||i>=17&&i<=20){Sleep(200);cout<<"█";}
else {Sleep(350);cout<<"█";}

}
cout<<endl<<"成功进入调查问卷。";
string A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R;
cout<<"在正式开始调查问卷前,请输入您的真实姓名。"<<endl;Sleep(100);
cin>>R;
cout<<"正式进入调查问卷。"<<endl;Sleep(200);
cout<<"调查问卷:"<<endl;Sleep(200);
cout<<"本次调查问卷的每一道题都要认真思考后再选择"<<endl<<endl;Sleep(200);
cout<<"开始答题。"<<endl<<endl<<endl;Sleep(200);
cout<<"第1题:请问您对这个作品满意吗?"<<endl;Sleep(200);
cout<<"A.满意 B.不满意"<<endl;Sleep(100);
cin>>A;
if(A=="B"){
cout<<"请问还有哪些需要修改"<<endl;Sleep(100);
cin>>B; 
cout<<"感谢您的反馈!"<<endl;Sleep(200);
}
else if(A=="A"){cout<<"感谢您对我们的认可!";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第2题:请问您知道这个作品的开发者吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>C;
if(C=="A"){
cout<<"请问这个作品的开发者是谁(输入名字)"<<endl;Sleep(100);
cin>>K;
if(K!="谭俊涵"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"这个作品的开发者是:谭俊涵";Sleep(200);
}
else if(K=="谭俊涵"){
cout<<"回答正确!";Sleep(200);
}
}
else if(C=="B"){cout<<"这个作品的开发者是:谭俊涵";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第3题:请问您对这个作品的开发者熟系吗?"<<endl;Sleep(200);
cout<<"A.熟系 B.不熟系"<<endl;Sleep(100);
cin>>J;
cout<<"下一题"<<endl;Sleep(200);
cout<<"第4题:请问您知道这个作品是哪个工作室开发的吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>G; 
if(G=="A"){
cout<<"请问这个作品的工作室是哪个工作室?"<<endl;Sleep(100);
cin>>L; 
if(L!="谭羽工作室"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"开发这个作品的工作室是:谭羽工作室";Sleep(200);
}
else if(L=="谭羽工作室"){
cout<<"回答正确!";Sleep(200);
}
}
else if(G=="B"){cout<<"开发这个作品的工作室是:谭羽工作室";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第5题:请问您知道这个作品的工作室有那些成员吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>H;
if(H=="A"){
cout<<"请问这个工作室有哪些成员?(提示:两个人)"<<endl;Sleep(100);
cin>>M>>N;
if(M=="谭俊涵"&&N=="羽浩腾"||M=="羽浩腾"&&N=="谭俊涵"){
cout<<"回答正确!";Sleep(200);
}
else{
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"这个工作室有这两个成员:谭俊涵、羽浩腾";Sleep(200);
}
}
else if(H=="B"){cout<<"这个工作室有这两个成员:谭俊涵、羽浩腾";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第6题:请问您对这个工作室熟系吗?"<<endl;Sleep(200);
cout<<"A.熟系 B.不熟系"<<endl;Sleep(100);
cin>>I;
cout<<"下一题"<<endl;Sleep(200);
cout<<"第7题:请问您知道这个作品会到哪一版停更吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>D; 
if(D=="A"){
cout<<"请问这个作品会到哪一版停更?"<<endl;Sleep(100);
cin>>O;
if(O!="x.x"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"这个作品将会到x.x停更";Sleep(200); 
}
else{
cout<<"回答正确";Sleep(200);
}
}
else if(D=="B"){cout<<"这个作品将会到x.x停更";Sleep(2000);}
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第8题:请问您知道您正在游玩的这个作品是哪个版本吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>E;
if(E=="A"){
cout<<"请问您正在游玩的这个版本是哪个版本的?"<<endl;Sleep(100);
cin>>P;
if(P!="5.5"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"您现在游玩的是5.5版";Sleep(200); 
}
else{
cout<<"回答正确";Sleep(200);
}
}
else if(E=="B"){cout<<"您现在游玩的是5.0版";Sleep(2000);}
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第9题:请问您是从哪一个版本玩起的?"<<endl;Sleep(200);
cout<<"A. 1.0 B. 1.5 C. 2.0 D. 2.5 E. 3.0 F. 3.5 G. 4.0 H. 4.5 I. 5.0"<<endl;Sleep(100);
cin>>F;
cout<<"您的真实名字是"<<" ";Sleep(200);
cout<<R<<endl<<endl;Sleep(100);
cout<<"第1题您的答案是"<<" ";Sleep(200);
cout<<A<<endl<<endl;Sleep(100);
cout<<"第2题您的答案是"<<" ";Sleep(200);
cout<<C<<endl<<endl;Sleep(100);
cout<<"第3题您的答案是"<<" ";Sleep(200);
cout<<J<<endl<<endl;Sleep(100);
cout<<"第4题您的答案是"<<" ";Sleep(200);
cout<<G<<endl<<endl;Sleep(100);
cout<<"第5题您的答案是"<<" ";Sleep(200);
cout<<H<<endl<<endl;Sleep(100);
cout<<"第6题您的答案是"<<" ";Sleep(200);
cout<<I<<endl<<endl;Sleep(100);
cout<<"第7题您的答案是"<<" ";Sleep(200);
cout<<D<<endl<<endl;Sleep(100);
cout<<"第8题您的答案是"<<" ";Sleep(200);
cout<<E<<endl<<endl;Sleep(100);
cout<<"第9题您的答案是"<<" ";Sleep(200);
cout<<F<<endl<<endl;Sleep(100);
cout<<"请问以上答案是否需要重新填写?如果需要重新填写,请输入1,如果不需要重新填写,请输入0"<<endl;Sleep(100);
cin>>Q; 
if(Q=="1"){
for(;;){
cout<<"正在重新进入调查问卷。"<<endl;Sleep(250);
for(int i=1;i<=20;i++){
if(i>=1&&i<=10||i>=17&&i<=20){Sleep(200);cout<<"█";}
else {Sleep(350);cout<<"█";}

}
cout<<endl<<"已重新进入调查问卷。"<<endl<<endl<<endl;Sleep(100);
string A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R;
cout<<"在正式开始调查问卷前,请输入您的真实姓名。"<<endl;Sleep(100);
cin>>R;
cout<<"正式进入调查问卷。"<<endl;Sleep(200);
cout<<"调查问卷:"<<endl;Sleep(200);
cout<<"本次调查问卷的每一道题都要认真思考后再选择"<<endl<<endl;Sleep(200);
cout<<"开始答题。"<<endl<<endl<<endl;Sleep(200);
cout<<"第1题:请问您对这个作品满意吗?"<<endl;Sleep(200);
cout<<"A.满意 B.不满意"<<endl;Sleep(100);
cin>>A;
if(A=="B"){
cout<<"请问还有哪些需要修改"<<endl;Sleep(100);
cin>>B; 
cout<<"感谢您的反馈!"<<endl;Sleep(200);
}
else if(A=="A"){cout<<"感谢您对我们的认可!";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第2题:请问您知道这个作品的开发者吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>C;
if(C=="A"){
cout<<"请问这个作品的开发者是谁(输入名字)"<<endl;Sleep(100);
cin>>K;
if(K!="谭俊涵"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"这个作品的开发者是:谭俊涵";Sleep(200);
}
else if(K=="谭俊涵"){
cout<<"回答正确!";Sleep(200);
}
} 
else if(C=="B"){cout<<"这个作品的开发者是:谭俊涵";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第3题:请问您对这个作品的开发者熟系吗?"<<endl;Sleep(200);
cout<<"A.熟系 B.不熟系"<<endl;Sleep(100);
cin>>J;
cout<<"下一题"<<endl;Sleep(200);
cout<<"第4题:请问您知道这个作品是哪个工作室开发的吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>G;
if(G=="A"){
cout<<"请问这个作品的工作室是哪个工作室?"<<endl;Sleep(100);
cin>>L; 
if(L!="谭羽工作室"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"开发这个作品的工作室是:谭羽工作室";Sleep(200);
}
else if(L=="谭羽工作室"){
cout<<"回答正确!";Sleep(200);
}
}
else if(G=="B"){cout<<"开发这个作品的工作室是:谭羽工作室";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第5题:请问您知道这个作品的工作室有那些成员吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>H;
if(H=="A"){
cout<<"请问这个工作室有哪些成员?(提示:两个人)"<<endl;Sleep(100);
cin>>M>>N;
if(M=="谭俊涵"&&N=="羽浩腾"||M=="羽浩腾"&&N=="谭俊涵"){
cout<<"回答正确!";Sleep(200);
}
else{
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"这个工作室有这两个成员:谭俊涵、羽浩腾";Sleep(200);
}
}
else if(H=="B"){cout<<"这个工作室有这两个成员:谭俊涵、羽浩腾";Sleep(2000);} 
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第6题:请问您对这个工作室熟系吗?"<<endl;Sleep(200);
cout<<"A.熟系 B.不熟系"<<endl;Sleep(100);
cin>>I;
cout<<"下一题"<<endl;Sleep(200);
cout<<"第7题:请问您知道这个作品会到哪一版停更吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>D;
if(D=="A"){
cout<<"请问这个作品会到哪一版停更?"<<endl;Sleep(100);
cin>>O;
if(O!="5.0"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"这个作品将会到5.0停更";Sleep(200); 
}
else{
cout<<"回答正确";Sleep(200);
}
} 
else if(D=="B"){cout<<"这个作品将会到5.0停更";Sleep(2000);}
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第8题:请问您知道您正在游玩的这个作品是哪个版本吗?"<<endl;Sleep(200);
cout<<"A.知道 B.不知道"<<endl;Sleep(100);
cin>>E;
if(E=="A"){
cout<<"请问您正在游玩的这个版本是哪个版本的?"<<endl;Sleep(100);
cin>>P;
if(O!="5.0"){
cout<<"回答错误!"<<endl;Sleep(200);
cout<<"您现在游玩的是5.0版";Sleep(200); 
}
else{
cout<<"回答正确";Sleep(200);
}
}
else if(E=="B"){cout<<"您现在游玩的是5.0版";Sleep(2000);}
cout<<endl<<endl<<"下一题"<<endl;Sleep(200);
cout<<"第9题:请问您是从哪一个版本玩起的?"<<endl;Sleep(200);
cout<<"A. 1.0 B. 1.5 C. 2.0 D. 2.5 E. 3.0 F. 3.5 G. 4.0 H. 4.5 I. 5.0"<<endl;Sleep(100);
cin>>F;
cout<<"您的真实名字是"<<" ";Sleep(200);
cout<<R<<endl<<endl;Sleep(100);
cout<<"第1题您的答案是"<<" ";Sleep(200);
cout<<A<<endl<<endl;Sleep(100);
cout<<"第2题您的答案是"<<" ";Sleep(200);
cout<<C<<endl<<endl;Sleep(100);
cout<<"第3题您的答案是"<<" ";Sleep(200);
cout<<J<<endl<<endl;Sleep(100);
cout<<"第4题您的答案是"<<" ";Sleep(200);
cout<<G<<endl<<endl;Sleep(100);
cout<<"第5题您的答案是"<<" ";Sleep(200);
cout<<H<<endl<<endl;Sleep(100);
cout<<"第6题您的答案是"<<" ";Sleep(200);
cout<<I<<endl<<endl;Sleep(100);
cout<<"第7题您的答案是"<<" ";Sleep(200);
cout<<D<<endl<<endl;Sleep(100);
cout<<"第8题您的答案是"<<" ";Sleep(200);
cout<<E<<endl<<endl;Sleep(100);
cout<<"第9题您的答案是"<<" ";Sleep(200);
cout<<F<<endl<<endl;Sleep(100);
cout<<"请问以上答案是否需要重新填写?如果需要重新填写,请输入1,如果不需要重新填写,请输入0"<<endl;Sleep(100);
int dfg;
cin>>dfg;
if(dfg==0){
MessageBox(NULL,"本作品的开发者是:谭俊涵","感谢您的回答!",MB_OK);
MessageBox(NULL,"本作品制作核心内容的是:谭俊涵","感谢您的回答!",MB_OK);
MessageBox(NULL,"本作品制作调查问卷的是:羽浩腾","感谢您的回答!",MB_OK);
MessageBox(NULL,"本作品的工作室是:谭羽工作室","感谢您的回答!",MB_OK);
MessageBox(NULL,"本作品的代言人是:羽浩腾.谭俊涵.陈忆轩.阮烁恒.","感谢您的回答!",MB_OK);
MessageBox(NULL,"余振东.陈科羽.何宇彬.陈源洋.","感谢您的回答!",MB_OK);
MessageBox(NULL,"张伟.华子杰.熊伟辰.欧阳梓萱.","感谢您的回答!",MB_OK);
MessageBox(NULL,"郑浩扬.杨梓豪.周亚萱.冯品灵.","感谢您的回答!",MB_OK);
MessageBox(NULL,"卢瑞平.黄祥欢.董晋熙.余秉鸿.","感谢您的回答!",MB_OK);
MessageBox(NULL,"吴希然","感谢您的回答!",MB_OK);
MessageBox(NULL,"我们谭羽工作室会更加努力创作更多作品。再见!","感谢您的回答!",MB_OK);
break;
}int QWE=0;
if(dfg!=0&&dfg!=1){
for(;;){
cout<<"您没有输入1 或者0 哦!"<<endl<<endl; 
cin>>dfg;
if(dfg==0){QWE=1;break;}
if(dfg==1){break;} 
} 
}
if(QWE==1)break;

}
}

} if(q==0){
cout<<"退出游戏中......"<<endl;Sleep(100);
cout<<"删除数据中......"<<endl;Sleep(250);
cout<<"删除账号中......"<<endl;Sleep(100);
cout<<"删除存档中......"<<endl;Sleep(200);
cout<<"删除indvsh.sfjds中......"<<endl;Sleep(60);
cout<<"删除sdkgvsc中......"<<endl;Sleep(100);
cout<<"删除.sdghfdj中......"<<endl;Sleep(80);
cout<<"删除fdlg.dg中......"<<endl;Sleep(150);
cout<<"删除dsfvnksdl中......"<<endl;Sleep(10);
cout<<"删除fh.gffg/bea'sgnfd.,中......"<<endl;Sleep(150);
cout<<"删除adbhwj#vsg@^dvbsvkcd中......"<<endl;Sleep(120);
cout<<"删除fdsjkfg[sgkfd[vsdhk中......"<<endl;Sleep(60);
cout<<"删除sfg?ds中......"<<endl;Sleep(60);
cout<<"删除afhdogh!df*jso中......"<<endl;Sleep(500);
cout<<"删除sdghfsids.g,ef>sjgv中......"<<endl;Sleep(60);
cout<<"删除gfsdgdfbrsvbmm,nbdfb中......"<<endl;Sleep(35);
cout<<"删除drgtfhrth>*dgjfi-ndfj中......"<<endl;Sleep(500);
cout<<"删除sghdfjs.vbf/rws*vfdj中......"<<endl;Sleep(120);
cout<<"删除sgh-+gdfigd5gv4df中......"<<endl;Sleep(100);
cout<<"删除fdgh(2364e_dshf)dsnv中......"<<endl;Sleep(430);
cout<<"删除ergh?;fgghdfjjbnd中......"<<endl;Sleep(100);
cout<<"删除ergjwifgvb]ds.fjgsdfgvb中......"<<endl;Sleep(63);
cout<<"删除sgufhailfd.hvguesao中......"<<endl;Sleep(150);
cout<<"删除sdfvnj^&sdvfgadfh.d/h中......"<<endl;Sleep(130);
cout<<"删除fdngfd.a823fbdh中......"<<endl;Sleep(190);
cout<<"删除srgjirgerh./io,fgjbdgbgv中......"<<endl;Sleep(260);
cout<<"删除rgtdrjhythcgdfghrj456中......"<<endl;Sleep(450);
cout<<"删除jrekf62中......"<<endl;Sleep(610);
cout<<"删除sghdfvnd.k,中......"<<endl;Sleep(500);
cout<<"删除regfdibndj中......"<<endl;Sleep(300);
cout<<"删除efgbvfvuseifg中......"<<endl;Sleep(456);
cout<<"删除ksdfgbfjdngvsdfsdkp.m//dfv中......"<<endl;Sleep(300);
cout<<"删除.vnjdsihgdfsj中......"<<endl;Sleep(600);
cout<<"删除sjdgovjdfnngdf,sd;sdgf中......"<<endl;Sleep(123);
cout<<"删除dfggdjfsjvjmndkcsdkfjkdkfjd中......"<<endl;Sleep(560);
cout<<"删除dfgbfjdkvsklefhidos中......"<<endl;Sleep(320);
cout<<"删除f,edufdhsbdg中......"<<endl;Sleep(500);
cout<<"删除efgehsifvdsiorgpw中......"<<endl;Sleep(350);
cout<<"删除gfjdondovdfon中......"<<endl;Sleep(300);
cout<<"删除fjdiv.s?fso中......"<<endl;Sleep(860);
cout<<"删除dgjskdlvc'sg中......"<<endl;Sleep(530);
cout<<"删除edfuidsfg中......"<<endl;Sleep(163);
cout<<"删除.renshengchongkaimoniqi中......"<<endl;Sleep(2000);
cout<<"删除.tanyugongzuoshi中......"<<endl;Sleep(3000);
cout<<"文件全部删除成功"<<endl;Sleep(40);
cout<<"已退出游戏,再见"<<endl;
}


return 0;
} 

15、忍者跑酷

#include<bits/stdc++.h>    
#include<windows.h>
#include<stdio.h>
#include<conio.h>
#include<time.h>
#define Nor if(B[b].x<5) B[b].x=5;
#define Out1 Bx1-Bvx1<=6||Bx1-Bvx1>=28||By1-Bvy1<=7||By1-Bvy1>=27
#define Out2 Bx2-Bvx2<=6||Bx2-Bvx2>=28||By2-Bvy2<=7||By2-Bvy2>=27
#define Chang1 {Bwhat1=0;Bvx1=Bvy1=0;memset(Bgo1,0,sizeof(Bgo1));}
#define Chang2 {Bwhat2=0;Bvx2=Bvy2=0;memset(Bgo2,0,sizeof(Bgo2));}
#define Chang3 {Bwhat3=0;Bvx3=Bvy3=0;memset(Bgo3,0,sizeof(Bgo3));}
using namespace std;
int ti(float a) {return ((int)(a*10+5))/10;}
void Setpos(float x,float y){COORD pos;pos.X=ti(y*4)/2;pos.Y=ti(x);SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);}
void Color(int a){if(a==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);if(a==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE);if(a==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);if(a==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);if(a==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_BLUE);if(a==7) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);if(a==8) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);if(a==9) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_GREEN|BACKGROUND_BLUE);if(a==10) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_RED|BACKGROUND_BLUE);if(a==11) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_BLUE);if(a==12) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_GREEN);if(a==13) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY);if(a==14) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_GREEN|FOREGROUND_BLUE);}
int Blomax,Ren,Exp,Expmax,Lv,Lvl,Ice,Drug,ar1,ar2,Tar1,Tar2,bl,br,Win,T,Tb,Sy,Up,Upt,Down,u1,u2,Kill,Killb,L,Ll[4],Li,D,Gd[10],Biao,Fire,Fir,Water,Thun,Wind,Magne,I[20][2],ib,Dis,Disb,Dis1,Disb1,Boss,Bblo,Bblomax,Bwhat1,Bwhat2,Bwhat3,Bgo1[10],Bgo2[10],Bgo3[10],Bbr,Bbl,Bl[4];
float X,Y,Vx,Vy,Ding,Blo,Hui,Bx1,By1,Bx2,By2,Bx3,By3,Bvx1,Bvy1,Bvx2,Bvy2,Bvx3,Bvy3,Bway[1001][2];
struct bullet{float x,y,vx,vy;int what;int a,t,How;int life;bool kill;}B[100001];
void Map(int a,int b);
void Pan(int a,float x,float y,int b){
    float Nox[4],Noy[4];Nox[0]=X,Noy[0]=Y;
    if(Down==1&&X==22) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;else if(Down==2) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;else if(Down==1||X<18) Nox[1]=X-1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;else Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;
    for(int i=0;i<3;i++){
        if(a==-1){if(abs(x-Nox[i])+abs(y-Noy[i])<1.5) {if(B[b].what==-10)Exp+=2;if(B[b].what==-11)Exp+=1;B[b].life=0;if(B[b].life==0&&b==bl) bl++;Map(3,b);break;}}
        if(a==-2){if(abs(x-Nox[i])+abs(y-Noy[i])<2.5) {if(B[b].what==-2)Exp+=5,Biao+=5;if(B[b].what==-3)Fire=300,Ice=0,Fir=3;if(B[b].what==-4)Water=200;if(B[b].what==-5){Wind=70;Ding=28.25;Ice=0;if(Y<Ding-1)Vy=5;else Vy=0;if(Up>=1) Vx=-5;if(Down==2) Vx=5;}if(B[b].what==-6){Thun=200;system("color 1F");Sleep(20);system("color 6F");Sleep(10);system("color 0F");}if(B[b].what==-7)Magne=300;if(B[b].what==-8)Ice=0,Drug=0,Blo=fmin((float)Blomax,Blo+20);if(B[b].what==-9)Exp=fmin((float)Expmax,Exp+20);B[b].life=0;if(B[b].life==0&&b==bl) bl++;Map(3,b);break;}}
    }if(Wind==0&&Thun==0&&(B[b].kill!=0||Killb>=15||Ren==1&&Killb>0)) return;
    for(int i=0;i<3;i++){
        if((Wind>=1||Thun>=1)&&abs(x-Nox[i])+abs(y-Noy[i])<2.5) {if(B[b].what<98)Exp+=2;B[b].life=0;Map(3,b);break;}
        if(a==1) {if(abs(x-Nox[i])<0.5&&abs(y-Noy[i])<1) {if(B[b].what>=99)Blo-=10;if(B[b].what==14)Blo-=15,Ice=100,B[b].life=0;else if(B[b].what==15)Blo-=20,Ice=0,B[b].life=0;else if(B[b].what==17)Blo-=5,Drug=100,B[b].life=0;else if(B[b].what>=13&&B[b].what<=17)Blo-=10,B[b].life=0;else Blo-=15;B[b].kill=1,Killb=20;Kill=1;Map(3,b);break;}}
        if (a==2||a==6||a==8||a==9||a==10||a==11||a==12) {
            if(abs(x-Nox[i])+abs(y-Noy[i])<1.5) {
                if(a==2)Blo-=20;
                else if(a==8)Blo-=10;
                else Blo-=15;B[b].kill=1,Killb=20;Kill=1;if(a!=2){B[b].life=0;if(B[b].life==0&&b==bl) bl++;Map(3,b);break;}}}
        if(a==4) {if((Wind>=1||Thun>=1)&&abs(x-Nox[i])<1.5&&Noy[i]-y<=0&&Noy[i]-y>=-8) {if(B[b].what<98)Exp+=2;B[b].life=0;Map(3,b);break;}if(abs(x-Nox[i])<1&&Noy[i]-y<=0&&Noy[i]-y>=-8) {Blo-=25,B[b].kill=1,Killb=20;Kill=1;Vy=-1;Y-=0.5;break;}}
    }
}
void Map(int a,int b){
    Color(0);
    if(a==-1){
        if(Boss==1||Boss==6){if(Bwhat1==5){if(ti(Bx1)==20)Setpos(Bx1,By1),cout<<"==";else Setpos(Bx1,By1),cout<<"  ";}else{Setpos(Bx1-1,By1-0.5),cout<<"    ";Setpos(Bx1,By1-1),cout<<"      ";Setpos(Bx1+1,By1-0.5),cout<<"    ";if(abs(ti(Bx1)-20)<=1)Setpos(20,By1-1),cout<<"======";}}
        if(Boss==2||Boss==6){Setpos(Bx2-1,By2-1);cout<<"    ";Setpos(Bx2,By2-1);cout<<"      ";Setpos(Bx2+1,By2-1),cout<<"      ";Color(0);if(abs(ti(Bx2)-20)<=1)Setpos(20,By2-1),cout<<"======";}
        if(Boss==3||Boss==6){Setpos(Bx3-1,By3-0.5);cout<<"     ";Setpos(Bx3,By3);cout<<"  ";Setpos(Bx3+1,By3-1),cout<<"      ";Color(0);if(abs(ti(Bx3)-20)<=1)Setpos(20,By3-1),cout<<"=======";}
        if(X<0)return;if(X>=17&&X<=19){Setpos(X-1,Y);cout<<"  ";Setpos(X,Y-1);cout<<"   ";Setpos(X+1,Y-1),cout<<"   ";}else if(X<=23&&X>=21){Setpos(X+1,Y);cout<<"  ";Setpos(X,Y-1);cout<<"   ";Setpos(X-1,Y-1),cout<<"    ";}else if(X>23){Setpos(X,Y-1);cout<<"    ";Setpos(X-1,Y-0.5),cout<<"   ";}else if(X<17&&Upt!=0){Setpos(X,Y-1);cout<<"    ";Setpos(X+1,Y-1.5),cout<<"    ";}else if(X<17){Setpos(X,Y-1);cout<<"    ";Setpos(X+1,Y-0.5),cout<<"   ";}if(Thun>0){Setpos(X-2,Y-1),cout<<"    ";Setpos(X+2,Y-1),cout<<"    ";Setpos(X,Y+2),cout<<"  ";Setpos(X,Y-2.5),cout<<"  ";Setpos(X-1,Y+1),cout<<"  ";Setpos(X+1,Y+1),cout<<"  ";Setpos(X-1,Y-2),cout<<"  ";Setpos(X+1,Y-2),cout<<"  ";Setpos(20,Y-2.5),cout<<"============";}if(Wind!=0){Setpos(X+1,Y-5);cout<<"        ";Setpos(X,Y-5);cout<<"        ";Setpos(X-1,Y-5);cout<<"        ";Setpos(20,Y-5),cout<<"========";}if(Water!=0){Setpos(X,Y-4);cout<<"       ";Setpos(X+2,Y-3.5);cout<<"     ";Setpos(X-2,Y-3.5);cout<<"     ";Setpos(X+1,Y-3.5);cout<<"     ";Setpos(X-1,Y-3.5);cout<<"     ";Setpos(20,Y-5),cout<<"========";}if(Fire!=0){Setpos(X,Y+1),cout<<"  ";Setpos(X+1,Y),cout<<"  ";Setpos(X-1,Y-1),cout<<"  ";Setpos(20,Y-1);cout<<"======";}
    }
    if(a==0){
        if(Boss==1||Boss==6){if(Bwhat1==5)Color(5),Setpos(Bx1,By1),cout<<"█",Color(0);else if(Bwhat1==4&&Bgo1[1]>6&&Bgo1[1]<11)Color(4),Setpos(Bgo1[5]-1,Bgo1[6]),cout<<"︻",Setpos(Bgo1[5],Bgo1[6]-1),cout<<"【",Setpos(Bgo1[5],Bgo1[6]+1),cout<<"】",Setpos(Bgo1[5]+1,Bgo1[6]),cout<<"︼",Color(0);else{Setpos(Bx1-1,By1-0.5),Color(0),cout<<"●●";Setpos(Bx1,By1-1);if(Bwhat1==2&&Bgo1[1]<=5)Color(1);else if(Bwhat1==3&&Bgo1[1]<=5)Color(5);else if(Bwhat1==6&&Bgo1[1]<=5)Color(8); else Color(4);if(Bwhat1==4) Setpos(Bx1,By1-0.5),cout<<"██(";else cout<<")██(";Setpos(Bx1+1,By1-0.5),cout<<"……";Color(0);}}
        if(Boss==2||Boss==6){Setpos(Bx2-1,By2-1);Color(0),cout<<"\\ ";Color(0);cout<<"●";Setpos(Bx2,By2-1);Color(3);cout<<"◥";Color(5),cout<<"JJJ";Color(0),cout<<">";Color(3);Setpos(Bx2+1,By2-1),cout<<"◢█◣";Color(0);}
        if(Boss==3||Boss==6){Setpos(Bx3-1,By3-0.5);if(Bwhat3==3||Bwhat3==9) Color(1);else if(Bwhat3==4||Bwhat3==10) Color(4);else if(Bwhat3==5||Bwhat3==11) Color(5);if(Bwhat3==11)cout<<' ';else if(Bwhat3==6) Color(3);else Color(2);cout<<"●-";Setpos(Bx3,By3);if(Bwhat3==11)cout<<"/";else cout<<"┃";Color(0);Setpos(Bx3+1,By3-1),cout<<"●●●";}
        if(X<0)return;if(Ren==2) Color(12);if(Ren==3) Color(1);if(Ren==4) Color(3);if(Ren==5) Color(4);if(Ren==6) Color(2);if(Drug!=0&&T%5!=0) Color(11);if(Drug!=0&&T%5==0) Color(11);if(Ice!=0) Color(6);if(b==1) Color(8);if(Li!=0) Color(5);if(Ren==1&&Killb>0&&T%4<2) Color(13);if(Wind>0&&T%4<=1) Color(1);if(Wind>0&&T%4>=2) Color(0);if(Thun>0&&T%4<=1) Color(1);if(Thun>0&&T%4>=2) Color(6);
        if(X>=17&&X<=19){Setpos(X-1,Y);cout<<"●";Setpos(X,Y-1);cout<<"━/";if(T%10<3) Setpos(X+1,Y-1),cout<<"┛╲";else if(T%10<6) Setpos(X+1,Y-1),cout<<"┦ ";else Setpos(X+1,Y-1),cout<<"╯>";if(Wind>0&&T%3==0) Setpos(X+1,Y-1),cout<<"┛╲";else if(Wind>0&&T%3==1) Setpos(X+1,Y-1),cout<<"┦ ";else if(Wind>0&&T%3==2)Setpos(X+1,Y-1),cout<<"╯>";}else if(X<=23&&X>=21){Setpos(X+1,Y);cout<<"●";Setpos(X,Y-1);cout<<"━\\";if(T%10<3) Setpos(X-1,Y-1),cout<<"┓╱";else if(T%10<6) Setpos(X-1,Y-1),cout<<"┪ ";else Setpos(X-1,Y-1),cout<<"╮>";if(Wind>0&&T%3==0) Setpos(X-1,Y-1),cout<<"┓╱";else if(Wind>0&&T%3==1) Setpos(X-1,Y-1),cout<<"┪ ";else if(Wind>0&&T%3==2)Setpos(X-1,Y-1),cout<<"╮>";}else if(X>23){Setpos(X,Y-1);cout<<"━ ●";Setpos(X-1,Y-0.5),cout<<"│>";}else if(X<17&&Upt!=0){Setpos(X,Y-1);cout<<"━ ●";Setpos(X+1,Y-1.5),cout<<"╱ >";}else if(X<17){Setpos(X,Y-1);cout<<"━ ●";Setpos(X+1,Y-0.5),cout<<"│>";}if(Thun>0){Setpos(X-2,Y-1),cout<<"▄▄";Setpos(X+2,Y-1),cout<<"▄▄";Setpos(X,Y+2),cout<<"▌";Setpos(X,Y-2.5),cout<<"▌";Setpos(X-1,Y+1),cout<<"█";Setpos(X+1,Y+1),cout<<"█";Setpos(X-1,Y-2),cout<<"█";Setpos(X+1,Y-2),cout<<"█";}if(Magne>0&&T%7<2)Setpos(X,Y),Color(5),cout<<"★";if(Wind>1){if(T%6<2)Color(1);else Color(0);if(T%8<=1){Setpos(X+1,Y-5);cout<<"----  --";Setpos(X,Y-5);cout<<"-  --- -";Setpos(X-1,Y-5);cout<<"--- - --";}else if(T%8<=3){Setpos(X+1,Y-5);cout<<"------  ";Setpos(X,Y-5);cout<<" --  ---";Setpos(X-1,Y-5);cout<<"----- - ";}else if(T%8<=5){Setpos(X+1,Y-5);cout<<"  ------";Setpos(X,Y-5);cout<<"-- --  -";Setpos(X-1,Y-5);cout<<"- ----- ";}else if(T%8<=7){Setpos(X+1,Y-5);cout<<"--  ----";Setpos(X,Y-5);cout<<" --- -- ";Setpos(X-1,Y-5);cout<<"- - ----";}}if(Water!=0){Color(1);if(T%20<5){Setpos(X+2,Y-3);cout<<"■";Setpos(X+1,Y-3.5);cout<<"■";Setpos(X-1,Y-2.5);cout<<"■";Setpos(X-2,Y-3);cout<<"■";}else if(T%20<10||T%20>=15){Setpos(X+2,Y-3);cout<<"■";Setpos(X,Y-4);cout<<"■■";Setpos(X-2,Y-3);  cout<<"■";}else if(T%20<15){Setpos(X+2,Y-3.5);cout<<"■";Setpos(X+1,Y-3);cout<<"■";Setpos(X-1,Y-3.5);cout<<"■";Setpos(X-2,Y-3);cout<<"■";}}if(Fire!=0){if(T%6<3)Color(4);else Color(5);if(Fir>=1)Setpos(X,Y+1),cout<<"●";if(Fir>=2)Setpos(X+1,Y),cout<<"●";if(Fir>=3)Setpos(X-1,Y-1),cout<<"●";}
    }
    if(a==1||a==3){
        if(B[b].what==1){Nor;Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(B[b].How<=1) Color(13);else Color(4);cout<<"●";if(a==1) Pan(1,B[b].x,B[b].y,b);}}
        if(B[b].what==2){Nor;Setpos(B[b].x-1,B[b].y-1);if(ti(B[b].x-1)==20)cout<<"======";else cout<<"      ";Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";Setpos(B[b].x+1,B[b].y-1);if(ti(B[b].x+1)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);Color(5);if(B[b].How==0){Setpos(B[b].x-1,B[b].y),cout<<"↑";Setpos(B[b].x,B[b].y-1),cout<<"←┼ →";Setpos(B[b].x+1,B[b].y),cout<<"↓";}else if(B[b].How==1){Setpos(B[b].x-1,B[b].y-1),cout<<"↖  ↗";Setpos(B[b].x,B[b].y),cout<<"╳";Setpos(B[b].x+1,B[b].y-1),cout<<"↙  ↘";} if(a==1) Pan(2,B[b].x,B[b].y,b);}}
        if(B[b].what==3||B[b].what==5){Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(B[b].life!=0){B[b].y-=B[b].vy;B[b].x-=B[b].vx;Setpos(B[b].x,B[b].y);if(B[b].How==1) Color(5);else Color(4);cout<<"◎";}}
        if(B[b].what==4){Nor;Setpos(B[b].x,fmax((float)0,B[b].y-8));if(ti(B[b].x)==20){for(int i=max(0,(int)B[b].y-8);i<=B[b].y;i++)cout<<"==";}else {for(int i=max(0,(int)B[b].y-8);i<=B[b].y;i++)cout<<"  ";}if(B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,fmax((float)0,B[b].y-8));Color(6); for(int i=max(0,(int)B[b].y-8);i<=B[b].y;i++)cout<<"═"; if(a==1) Pan(4,B[b].x,B[b].y,b);}}
        if(B[b].what==6||B[b].what==8||B[b].what==9){Nor;Setpos(B[b].x-1,B[b].y);if(ti(B[b].x)-1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x+1,B[b].y);if(ti(B[b].x)+1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;B[b].x-=B[b].vx;Setpos(B[b].x,B[b].y-1);if(B[b].what==6){if(B[b].How<=1) Color(1); else Color(6);}if(B[b].what==9){if(B[b].How<=1) Color(4); else Color(8);}if(B[b].what==8)Color(5);Setpos(B[b].x-1,B[b].y);cout<<"︹";Setpos(B[b].x+1,B[b].y);cout<<"︺";Setpos(B[b].x,B[b].y-1);if(B[b].How%2==1) cout<<"〔●〕"; else cout<<"﹝○﹞"; if(a==1) Pan(6,B[b].x,B[b].y,b);}}
        if(B[b].what==7){Nor;Setpos(B[b].x,B[b].y);if(B[b].How<0) for(int i=19;i>=20+B[b].How;i--) {Setpos(i,B[b].y);cout<<"  ";}if(B[b].How>0) for(int i=21;i<=20+B[b].How;i++) {Setpos(i,B[b].y);cout<<"  ";}if(B[b].life!=0){B[b].y-=B[b].vy;if(B[b].How<0) for(int i=19;i>=20+B[b].How;i--) {Setpos(i,B[b].y);cout<<"║"; if(a==1) Pan(7,i,B[b].y,b);}if(B[b].How>0) for(int i=21;i<=20+B[b].How;i++) {Setpos(i,B[b].y);cout<<"║"; if(a==1) Pan(7,i,B[b].y,b);}}}
        if(B[b].what==10||B[b].what==11||B[b].what==12){Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(B[b].life!=0){B[b].x-=B[b].vx;B[b].y-=B[b].vy;if(B[b].How==1){B[b].vy-=0.2;}else B[b].vx-=0.35;if(B[b].x>=25) B[b].x=25,B[b].vx*=-0.8;if(B[b].what==11&&B[b].y<=1) B[b].y=1,B[b].vy*=-1;if(B[b].what==12&&B[b].y<=1) B[b].y=1,B[b].vx=0,B[b].vy=-0.5,B[b].How=1;Setpos(B[b].x,B[b].y);if(B[b].what==11)Color(1);else if(B[b].what==12)Color(5);else Color(0);if(B[b].t%4<2)cout<<"▃";else cout<<"▍";if(a==1) Pan(B[b].what,B[b].x,B[b].y,b);}}
        if(B[b].what>=13&&B[b].what<=17){Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"====";else cout<<"    ";if(B[b].life!=0){B[b].x-=B[b].vx;B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(B[b].what==14) Color(1);else if(B[b].what==15) Color(4);else if(B[b].what==16) Color(5);else if(B[b].what==17) Color(3);else Color(2);cout<<"●";if(B[b].what==14)cout<<"*";if(B[b].what==15)cout<<"";if(B[b].what==16)cout<<"<";if(B[b].what==17)cout<<"X";} if(a==1) Pan(1,B[b].x,B[b].y,b);}
        if(B[b].what==98&&B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(ti(B[b].x==20))cout<<"==";else cout<<"  ";if(B[b].y<=3)B[b].life=0;} 
        if(B[b].what>=99){if(B[b].y<=3)B[b].life=0;if(B[b].life!=0){B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);Color(5);if(B[b].what==99)cout<<"█";if(B[b].what>=100&&B[b].what<200){if(B[b].what%5==0)cout<<"我";if(B[b].what%5==1)cout<<"是";if(B[b].what%5==2)cout<<"最";if(B[b].what%5==3)cout<<"强";if(B[b].what%5==4)cout<<"的";}if(B[b].what>=200&&B[b].what<300){if(B[b].what%6==0)cout<<"神";if(B[b].what%6==1)cout<<"级";if(B[b].what%6==2)cout<<"怪";if(B[b].what%6==3)cout<<"物";if(B[b].what%6==4)cout<<"之";if(B[b].what%6==5)cout<<"光";}if(B[b].what>=300&&B[b].what<400){if(B[b].what%8==0)cout<<"颤";if(B[b].what%8==1)cout<<"抖";if(B[b].what%8==2)cout<<"吧";if(B[b].what%8==3)cout<<"无";if(B[b].what%8==4)cout<<"能";if(B[b].what%8==5)cout<<"的";if(B[b].what%8==6)cout<<"人";if(B[b].what%8==7)cout<<"类";}if(B[b].what>=400&&B[b].what<500){if(B[b].what%8==0)cout<<"还";if(B[b].what%8==1)cout<<"不";if(B[b].what%8==2)cout<<"快";if(B[b].what%8==3)cout<<"跪";if(B[b].what%8==4)cout<<"倒";if(B[b].what%8==5)cout<<"在";if(B[b].what%8==6)cout<<"朕";if(B[b].what%8==7)cout<<"前";}if(B[b].what>=500&&B[b].what<600){if(B[b].what%8==0)cout<<"看";if(B[b].what%8==1)cout<<"懂";if(B[b].what%8==2)cout<<"这";if(B[b].what%8==3)cout<<"句";if(B[b].what%8==4)cout<<"话";if(B[b].what%8==5)cout<<"的";if(B[b].what%8==6)cout<<"是";if(B[b].what%8==7)cout<<"猪";} if(a==1) Pan(1,B[b].x,B[b].y,b);}}
        if(B[b].what==-1){Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(Boss==0) B[b].life=0;else if(((Boss==1&&abs(B[b].x-Bx1)+abs(B[b].y-By1)<1.5)||(Boss==2&&abs(B[b].x-Bx2)+abs(B[b].y-By2)<1.5)||(Boss==3&&abs(B[b].x-Bx3)+abs(B[b].y-By3)<1.5)||(B[b].t==10))&&B[b].life==1) Bblo-=8+Lv*2,B[b].life=0;if(B[b].life!=0){if(Boss==1)B[b].x=B[b].x+(Bx1-B[b].x)/(10-B[b].t)*1.0,B[b].y=B[b].y+(By1-B[b].y)/(10-B[b].t)*1.0;if(Boss==2)B[b].x=B[b].x+(Bx2-B[b].x)/(10-B[b].t)*1.0,B[b].y=B[b].y+(By2-B[b].y)/(10-B[b].t)*1.0;if(Boss==3)B[b].x=B[b].x+(Bx3-B[b].x)/(10-B[b].t)*1.0,B[b].y=B[b].y+(By3-B[b].y)/(10-B[b].t)*1.0;Setpos(B[b].x,B[b].y);Color(7);if(B[b].t%2==0) cout<<"+";else cout<<"×";}}
        if(B[b].what<=-2&&B[b].what>=-9){Nor;Setpos(B[b].x-1,B[b].y);if(ti(B[b].x)-1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x+1,B[b].y);if(ti(B[b].x)+1==20)cout<<"==";else cout<<"  ";Setpos(B[b].x,B[b].y-1);if(ti(B[b].x)==20)cout<<"======";else cout<<"      ";if(B[b].life!=0){B[b].y-=B[b].vy;B[b].x-=B[b].vx;if(B[b].what<=-3&&B[b].what>=-7){if(B[b].x<=7)B[b].x=7;if(B[b].x>=28)B[b].x=28;else if(B[b].x>=B[b].a+1&&B[b].How==1)B[b].How=0;else if(B[b].x<=B[b].a-1&&B[b].How==0)B[b].How=1;if(B[b].How==1&&B[b].vx>=-1)B[b].vx-=0.2;if(B[b].How==0&&B[b].vx<=1)B[b].vx+=0.2;}if(B[b].what==-2) Color(3);if(B[b].what==-3) Color(4);if(B[b].what==-4) Color(1);if(B[b].what==-5) Color(0);if(B[b].what==-6) Color(6);if(B[b].what==-7) Color(5);if(B[b].what==-8) Color(2);if(B[b].what==-9) Color(14);if(T%7<=1&&B[b].what==-5)Color(1);else if(T%7<=1)Color(0);Setpos(B[b].x-1,B[b].y);cout<<"︹";Setpos(B[b].x+1,B[b].y);cout<<"︺";Setpos(B[b].x,B[b].y-1);if(B[b].what==-2) cout<<"﹝镖﹞";if(B[b].what==-3) cout<<"﹝火﹞";if(B[b].what==-4) cout<<"﹝水﹞";if(B[b].what==-5) cout<<"﹝风﹞";if(B[b].what==-6) cout<<"﹝雷﹞";if(B[b].what==-7) cout<<"﹝磁﹞";if(B[b].what==-8) cout<<"﹝血﹞";if(B[b].what==-9) cout<<"﹝忍﹞"; if(a==1) Pan(-2,B[b].x,B[b].y,b);}}
        if(B[b].what==-11||B[b].what==-12){Nor;Setpos(B[b].x,B[b].y);if(ti(B[b].x)==20)cout<<"==";else cout<<"  ";if(B[b].life!=0){if(Magne>0)B[b].How++,B[b].x=B[b].x+(X-B[b].x)/(10-B[b].How)*1.0,B[b].y=B[b].y+(Y-B[b].y)/(10-B[b].How)*1.0;B[b].y-=B[b].vy;Setpos(B[b].x,B[b].y);if(B[b].what==-10) Color(5);if(B[b].what==-11) Color(7);if(T%7<=1)Color(0);cout<<"◆"; if(a==1) Pan(-1,B[b].x,B[b].y,b);}}
        if(B[b].what==-13){Nor;Setpos(B[b].x,B[b].y-0.5);if(ti(B[b].x)==20)cout<<"===";else cout<<"   ";if(B[b].life!=0){if(B[b].a==13880086){if(Boss==0) B[b].life=0;else if(((Boss==1&&abs(B[b].x-Bx1)+abs(B[b].y-By1)<1.5)||(Boss==2&&abs(B[b].x-Bx2)+abs(B[b].y-By2)<1.5)||(Boss==3&&abs(B[b].x-Bx3)+abs(B[b].y-By3)<1.5)||(B[b].t==5))&&B[b].life==1) Bblo-=8+Lv*2,B[b].life=0;if(B[b].life!=0){if(Boss==1)B[b].x=B[b].x+(Bx1-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(By1-B[b].y)/(5-B[b].t)*1.0;if(Boss==2)B[b].x=B[b].x+(Bx2-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(By2-B[b].y)/(5-B[b].t)*1.0;if(Boss==3)B[b].x=B[b].x+(Bx3-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(By3-B[b].y)/(5-B[b].t)*1.0;}}else{if(B[B[b].a].life==0) B[b].life=0;else if((abs(B[b].x-B[B[b].a].x)+abs(B[b].y-B[B[b].a].y)<1.5||(B[b].t==5))&&B[b].life==1) Exp+=2,B[B[b].a].life=B[b].life=0;if(B[b].life!=0){B[b].x=B[b].x+(B[B[b].a].x-B[b].x)/(5-B[b].t)*1.0,B[b].y=B[b].y+(B[B[b].a].y-B[b].y)/(5-B[b].t)*1.0;}}Setpos(B[b].x,B[b].y-0.5);if(T%6<3)Color(5);else Color(4);cout<<"●";}}
    }if(br<bl) {br=-1,bl=0;memset(B,0,sizeof(B));}Color(0);
}
void Move(){
    if(X<3) X=3;if(Y<1) Y=1,Vy=0;if(Y>29) Y=29,Vy=0;
    if(Ice!=0){X-=Vx/2.0;Y+=Vy/2.0;Vy=fmax(Vy-0.025,(float)0);if(T%6==0&&Up==0&&Y<Ding) Y+=0.25;if(T%6==3&&Up==0&&Y>=Ding) Y-=0.25;if(Up==0&&Y<=Ding-1.25) Vy=0.25;if(Up==0&&Y>=Ding+1.25&&Wind==0) Vy=-0.25;if(Up==0&&Down==0&&Vx>0&&X<=18) Up=0,Down=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2&&X<=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up==0&&Down==1&&Vx<0&&X>=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up>0&&Down==0&&X>18) Up=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2) Vx+=0.175;else if(Up>0&&Upt==0) Vx-=0.175;else if(Up>0&&Upt>0) {Vx=fmax(Vx-0.125,(float)0);if(Upt==1&&T%2==0)Map(-1,0);if(T%2==0)Upt--;}}
    else{X-=Vx;Y+=Vy;Vy=fmax(Vy-0.05,(float)0);if(Wind==0){if(T%6==0&&Up==0&&Y<Ding) Y+=0.5;if(T%6==3&&Up==0&&Y>=Ding) Y-=0.5;}else{if(T%2==0&&Up==0&&Y<Ding) Y+=0.5;if(T%2==1&&Up==0&&Y>=Ding) Y-=0.5;}if(Up==0&&Y<=Ding-1.25) Vy=0.5;if(Up==0&&Y>=Ding+1.25&&Wind==0) Vy=-0.5;if(Up==0&&Down==0&&Vx>0&&X<=18) Up=0,Down=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2&&X<=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up==0&&Down==1&&Vx<0&&X>=22) Up=0,Down=1,Vx=0,Vy=0,X=22,Setpos(20,Y-2.5),cout<<"==========";else if(Up>0&&Down==0&&X>18) Up=0,Vx=0,Vy=0,X=18,Setpos(20,Y-2.5),cout<<"==========";else if(Down==2) Vx+=0.35;else if(Up>0&&Upt==0) Vx-=0.35;else if(Up>0&&Upt>0) {Vx=fmax(Vx-0.25,(float)0);if(Upt==1)Map(-1,0); Upt--;}}
    for(int i=bl;i<=br;i++){
        if(B[i].what<98)if(B[i].x-B[i].vx<=5||B[i].x-B[i].vx>=30||B[i].y-B[i].vy<=0||B[i].y-B[i].vy>=30){B[i].life=0;Map(1,i);}
        for(int j=0;j<20;j++)if(B[i].what>0&&B[i].life!=0&&abs(B[i].x-I[j][0])<2&&B[i].y-I[j][1]<=2){Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;B[i].life=0;Exp+=2;}
        if(B[i].t>=100)B[i].life=0;if(B[i].life==0&&i==bl) bl++;
        Map(1,i);if(B[i].life==0) continue;
        else{B[i].t++;
            if(B[i].what==1){if(B[i].y<=25&&B[i].How==0) B[i].vy=0,B[i].How=1;if(B[i].t==30) B[i].y+=1.5,B[i].How=2;if(B[i].t==35) B[i].vy=1.5,B[i].How=3;}
            if(B[i].what==2){if(B[i].t%3==0) B[i].How=!B[i].How;} 
            if(B[i].what==3||B[i].what==5){if(B[i].what==3&&B[i].y<=20) B[i].vy=0;if(B[i].what==5&&B[i].y<=21) B[i].vy=0;if(B[i].t>30&&B[i].t%2==0) B[i].How=!B[i].How;if(B[i].what==5&&B[i].t<=30&&B[i].x<X) B[i].vx=-0.2;else if(B[i].what==5&&B[i].t<=70&&B[i].x>X) B[i].vx=0.2;else B[i].vx=0;if(B[i].t==45){B[i].life=0;br++;B[br].what=4;B[br].x=B[i].x;B[br].y=32;B[br].vy=3;B[br].life=1;}}
            if(B[i].what==6||B[i].what==8||B[i].what==9){if(B[i].vx<0.25&&B[i].vy<0.25&&B[i].t>=50){B[i].life=0;if(B[i].life==0&&i==bl) bl++;Map(1,i);break;}if(B[i].t%5==0) B[i].How=rand()%4;if(B[i].what==9){if(B[i].t==7){X9:float xx=(rand()%41)/40.0,yy=(rand()%41)/40.0;if(xx<=0.5&&yy<=0.5) goto X9;for(int j=1;j<=4;j++){br++,B[br].what=9;B[br].t=11;B[br].x=B[i].x,B[br].y=B[i].y,B[br].vx=xx,B[br].vy=yy;if(j%2==0)swap(B[br].vx,B[br].vy),B[br].vy*=-1;if(j<=2)B[br].vx*=-1,B[br].vy*=-1;B[br].life=1;}B[i].life=0;}}if(B[i].what==8){if(B[i].x>X&&B[i].vx<1.2) B[i].vx+=fmax((float)0,0.2-B[i].t/25);if(B[i].x<X&&B[i].vx>-1.2) B[i].vx-=fmax((float)0,0.2-B[i].t/25);if(B[i].y>Y&&B[i].vy<1.2) B[i].vy+=fmax((float)0,0.2-B[i].t/25);if(B[i].y<Y&&B[i].vy>-1.2) B[i].vy-=fmax((float)0,0.2-B[i].t/25);}}
            if(B[i].what>=13&&B[i].what<=15&&B[i].How!=0){if(B[i].x==B[i].How)B[i].vx=0,B[i].How=0;}
            if(B[i].what==16){if(B[i].x<X&&B[i].vx>=-1) B[i].vx-=0.2;else if(B[i].x>X&&B[i].vx<=1) B[i].vx+=0.2;}
        }
        if(B[i].life==1&&B[i].a==0&&B[i].what>0){if(B[i].y>Y&&abs(B[i].x-X)<=3&&((B[i].x-X)*(B[i].x-X)+(B[i].y-Y)*(B[i].y-Y))<Dis) Dis=(B[i].x-X)*(B[i].x-X)+(B[i].y-Y)*(B[i].y-Y),Disb=i;else if(((B[i].x-X)*(B[i].x-X)+(B[i].y-Y)*(B[i].y-Y))<Dis1) Dis1=(B[i].x-X)*(B[i].x-X)+(B[i].y-Y)*(B[i].y-Y),Disb1=i;}
    }
}
void Guai(int R,int r){
    if(R==-1){br++;B[br].what=-1;B[br].x=X+rand()%3-1;B[br].y=Y+rand()%3-1;B[br].life=1;}
    if(R<=-2&&R>=-11){br++;B[br].what=R;B[br].x=B[br].a=r;B[br].y=29;if(R<=-3&&R>=-7)B[br].vx=-1;B[br].vy=1;B[br].life=1;}
    if(R==0){br++;B[br].what=1;B[br].x=r;B[br].y=29;B[br].vy=1;B[br].life=1;}
    if(R==1){br++;B[br].what=2;B[br].x=r;B[br].y=29;B[br].vy=1;B[br].life=1;}
    if(R==2||R==3){br++;B[br].what=2*R-1;B[br].x=r;B[br].y=29;B[br].vy=1;B[br].life=1;}
    if(R==4){br++;B[br].what=6;if(r<5)r=5;if(r>30)r=30;B[br].x=r;if(r==11||r==25) B[br].y=29-(rand()%20);else B[br].y=29;X4:B[br].vx=(rand()%21-10)/30.0;B[br].vy=(rand()%25)/30.0;if(B[br].vx<=0.8&&B[br].vy<=0.8)goto X4;int rx=rand()%50;if(rx==0) B[br].vx=0;B[br].life=1;}
    if(R==5){br++;B[br].How=r;B[br].what=7;if(B[br].How<0) B[br].x=19;if(B[br].How>0) B[br].x=21;B[br].y=29;B[br].vy=1;B[br].life=1;}
}
void CpGuai(int R,float x,float y,float xx,float yy){
    if(R==4){br++;B[br].what=6;B[br].x=x;B[br].y=y;B[br].vx=xx;B[br].vy=yy;B[br].life=1;}
    if(R==6||R==7||R==8){br++;B[br].what=4+R;B[br].x=x;B[br].y=y;B[br].vx=xx;B[br].vy=yy;B[br].life=1;}
}
void MesGuai(int a,int rr){
    int R=rand()%rr,r=-10086;
    if(R==0){if(a==1) r=(5+rand()%8)*2;if(a<=3&&a!=1) r=10+rand()%16;if(a==4) r=rand()%75-20;if(a==5) r=2+rand()%4;if(r!=-10086) Guai(a,r);}
}
void NorGuai(int a,int b){    
    if(a==1) {if(b==1||b==41) Guai(0,15),Guai(0,17),Guai(0,19);if(b==21||b==61) Guai(0,21),Guai(0,23),Guai(0,25);if(b==81) Guai(0,11),Guai(0,13),Guai(0,15),Guai(0,17),Guai(0,19);if(b==101||b==141) Guai(0,17),Guai(0,19),Guai(0,21),Guai(0,23),Guai(0,25);if(b==121) Guai(0,15),Guai(0,17),Guai(0,19),Guai(0,21),Guai(0,23);if(b>=160&&b<=260&&b%10==0) Guai(0,b/10-1);if(b>=270&&b<=370&&b%10==0) Guai(0,52-b/10);if(b>=460&&b<=560&&b%10==0) Guai(0,b/10-37),Guai(0,b/10-36),Guai(0,b/10-35);if(b>=570&&b<=670&&b%10==0) Guai(0,78-b/10),Guai(0,77-b/10),Guai(0,76-b/10);if(b>=760&&b<=960&&b%10==0) Guai(0,b/10-66),Guai(0,b/10-65),Guai(0,103-b/10),Guai(0,104-b/10);if(b>=1000&&b<=1300) MesGuai(0,30-b/50);}
    if(a==2) {if(b<=200&&b%30==1) {int r=rand()%4;if(r==1) r=0;for(int i=0;i<4;i++) if(i!=r) Guai(1,i*4+9);}if(b>200&&b<=220&&b%5==1) Guai(1,18);if(b>220&&b<=300&&b%7==1) Guai(1,b/5-26);if(b>350&&b<=370&&b%5==1) Guai(1,22);if(b>370&&b<=450&&b%7==1) Guai(1,96-b/5);if(b==461||b==501||b==541) Guai(1,13),Guai(1,17),Guai(1,21);if(b==481||b==521||b==561) Guai(1,17),Guai(1,21),Guai(1,25);if(b>=561&&b<=861&&b%20==1) Guai(1,b/40+5);if(b>=561&&b<=861&&b%20==11) Guai(1,35-b/40);if(b>=801&&b<=961&&b%15==1) Guai(1,20);if(b>=1000&&b<=1300) MesGuai(1,30-b/50);}
    if(a==3) {if(b==1||b==61) Guai(3,15),Guai(2,17),Guai(2,19);if(b==31||b==91) Guai(2,21),Guai(2,23),Guai(3,25);if(b>=120&&b<=220&&b%10==0) Guai(2,b/10+3);if(b>=240&&b<=340&&b%10==0) Guai(2,49-b/10);if(b>=360&&b<=460&&b%20==0) Guai(2,b/10-21),Guai(2,61-b/10);if(b>=480&&b<=580&&b%20==0) Guai(3,b/10-33),Guai(3,73-b/10);if(b>=600&&b<750&&b%30==0) {for(int i=0;i<5;i++) Guai(3,i*3+10);}if(b>=750&&b<830&&b%10==0) if(b<=200&&b%40==1) Guai(2,X);if(b>=830&&b<910&&b%20==0) Guai(2,X);if(b>=910&&b<980&&b%10==0) Guai(2,X);if(b>=1000&&b<=1300) MesGuai(rand()%2+2,40-b/50);}
    if(a==4) {if(b==1) CpGuai(4,10,29,-0.4,0.7),CpGuai(4,14,29,-0.2,0.7),CpGuai(4,21,29,0,0.65);if(b==41) CpGuai(4,10,29,-0.2,0.7),CpGuai(4,14,29,-0.1,0.7),CpGuai(4,18,29,0,0.65);if(b==81) CpGuai(4,5,20,-0.4,0.35),CpGuai(4,10,29,-0.4,0.7),CpGuai(4,14,29,-0.2,0.7),CpGuai(4,30,20,0.25,0.4),CpGuai(4,21,29,0,0.65);if(b==121) CpGuai(4,5,20,-0.2,0.35),CpGuai(4,10,29,-0.2,0.7),CpGuai(4,14,29,-0.1,0.7),CpGuai(4,30,20,0.4,0.4),CpGuai(4,18,29,0,0.65);if(b==161) CpGuai(4,10,29,-0.4,0.7),CpGuai(4,14,29,-0.2,0.7),CpGuai(4,21,29,0,0.6),CpGuai(4,10,29,-0.2,0.7),CpGuai(4,14,29,-0.1,0.7),CpGuai(4,18,29,0,0.65);if(b>=200&&b<=500&&b%40==1) {float r=0,rr;for(int i=1;i<=5;i++){X5:rr=0.7+(rand()%5)/10.0;if(rr==r)goto X5;r=rr;CpGuai(4,i*3+7,29,0,0.5+(rand()%50)/80.0);}}if(b>540&&b<=565&&b%5==1) CpGuai(4,5,8,-2,0.2);if(b>590&&b<=615&&b%5==1) CpGuai(4,30,8,1.5,0.2);if(b>640&&b<=665&&b%5==1) CpGuai(4,5,8,-1.5,0.3);if(b>690&&b<=715&&b%5==1) CpGuai(4,30,8,2,0.3);if(b>=750&&b<=950&&b%20==1) {float r=0,rr;for(int i=1;i<=3;i++){X6:rr=0.7+(rand()%5)/10.0;if(rr==r)goto X6;r=rr;CpGuai(4,i*5+7+(rand()%3),29,0,0.5+(rand()%50)/200.0);}}if(b>=1000&&b<=1300) MesGuai(4,5);}
}
void RandGood(){
    if(Biao>0){Biao--;Guai(-1,0);}
    if(Gd[1]==0){Gd[1]=rand()%1000+1;if(Win==7)Gd[1]=10086;Gd[3]=rand()%16+8;}
    else if(Gd[1]<=5){Guai(-2-Gd[1],Gd[3]);memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=20&&Gd[1]<27){Guai(-8,Gd[3]);memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=30&&Gd[1]<37){Guai(-9,Gd[3]);memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=40&&Gd[1]<70){Gd[2]++;if(Gd[2]%2==1)Guai(-10,Gd[3]);if(Gd[2]>=9)memset(Gd,0,sizeof(Gd));}
    else if(Gd[1]>=70&&Gd[1]<100){Gd[2]++;if(Gd[2]%2==1)Guai(-11,Gd[3]);if(Gd[2]>=9)memset(Gd,0,sizeof(Gd));}
    else if(Boss!=0&&Gd[1]>=450&&Gd[1]<=500){Guai(-2,Gd[3]);memset(Gd,0,sizeof(Gd));}
    else Gd[1]=0;
    for(int i=0;i<20;i++){if(I[i][0]==-1) continue;Setpos(I[i][0],I[i][1]);Color(0);if(I[i][0]==20) cout<<"===";else cout<<"   ";I[i][1]++;if(I[i][0]>=28||I[i][0]<=0||I[i][1]>=29) I[i][0]=I[i][1]=-1;else Color(1),Setpos(I[i][0],I[i][1]),cout<<"■";Color(0);}
}
void Panboss(int bx,int by){
    float Nox[4],Noy[4];Nox[0]=X,Noy[0]=Y;
    if(Down==1&&X==22) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;
    else if(Down==2) Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;
    else if(Down==1||X<18) Nox[1]=X-1,Noy[1]=Y-0.5,Nox[2]=-10,Noy[2]=-10;
    else Nox[1]=X+1,Noy[1]=Y-0.5,Nox[2]=X-1,Noy[2]=Y-0.5;
    for(int i=0;i<3;i++){if((Boss==1||Boss==6)&&Wind==0&&Thun==0&&abs(Nox[i]-bx)<1&&abs(Noy[i]-by)<1&&Bgo1[4]==0) Blo-=20,Bgo1[4]=1,Killb=20,Kill=1;if((Boss==2||Boss==6)&&Wind==0&&Thun==0&&abs(Nox[i]-bx)<1&&abs(Noy[i]-by)<1&&Bgo2[8]==0) Blo-=20,Bgo2[8]=1,Killb=20,Kill=1;}
}
void Boss1(){
    for(int j=0;j<20;j++)if(abs(Bx1-I[j][0])<2&&By1-I[j][1]<=2){Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;Bblo-=8+Lv*2;Exp+=2;}
    if(Bbr==Bbl&&Bbr!=0) Bbr=Bbl=0;
    for(int i=1;i<=3+(Bbl-Bbr)/5;i++)if(Bbr<Bbl){Setpos(Bway[Bbr][0],Bway[Bbr][1]);if(Bway[Bbr][0]==20) cout<<"==";else cout<<"  ";Bbr++;}
    if(Bwhat1==5){int bx,by;Color(5);for(int i=0;i<10;i++){bx=Bx1-i*Bvx1/10.0;by=By1-i*Bvy1/10.0;Setpos(bx,by),cout<<"█";Bbl++;Bway[Bbl][0]=bx;Bway[Bbl][1]=by;}Color(0);}
    Bx1-=Bvx1;By1-=Bvy1;
    if(Bwhat1==0){X2:Bwhat1=rand()%7;if(Bwhat1==2||Bwhat1==3){if(By1<=10||By1>25) goto X2;}if(Bwhat1==4){if(By1<=15||Bx1<20) goto X2;Bgo1[2]=Bx1;Bgo1[3]=By1-1;}if(Bwhat1==5) {X0:Bgo1[3]=rand()%4+1;Bvx1=(rand()%101)/20.0;Bvy1=(rand()%101)/20.0;if(Bgo1[3]<=2) Bvx1*=-1;if(Bgo1[3]%2==1) Bvy1*=-1;if(abs(Bvx1)+abs(Bvy1)<=3||Out1)goto X0;}if(Bwhat1==6){if(By1<=17||By1>25) goto X2;}}
    if(Bwhat1==1){Bgo1[1]++,Bgo1[2]++;int R=rand()%(5-Bgo1[1]),r=rand()%(10-Bgo1[2]);if(Out1) R=0;if(R==0) {int vx=Bvx1,vy=Bvy1;Bgo1[1]=0;Bvx1=(rand()%101-20)/50.0;Bvy1=(rand()%101-20)/50.0;if(Bgo1[3]<=2) Bvx1*=-1;if(Bgo1[3]%2==1) Bvy1*=-1;if(Out1) r=0;} if(r==0) Chang1 }
    if(Bwhat1==2){Bgo1[1]++;if(Bgo1[1]>6){Bvy1=-0.3;br++;B[br].x=Bx1,B[br].y=By1-1;B[br].what=6;X3:B[br].vx=(rand()%21-10)/40.0;B[br].vy=(rand()%25)/30.0;if(B[br].vx<=0.8&&B[br].vy<=0.8)goto X3;int rx=rand()%50;if(rx==0) B[br].vx=0;B[br].life=1;}if(Bgo1[1]>8) Chang1}
    if(Bwhat1==3){Bgo1[1]++;if(Bgo1[1]>6&&Bgo1[1]%3==0){Bvy1=-0.3;br++;B[br].x=Bx1,B[br].y=By1-1;B[br].what=8;B[br].life=1;}if(Bgo1[1]>15) Chang1}
    if(Bwhat1==4){Bgo1[1]++;if(Bgo1[1]<=8){Setpos(Bgo1[2],Bgo1[3]);if(Bgo1[1]==1)cout<<" ";else if(Bgo1[1]>1&&Bgo1[2]==20) cout<<"==";else cout<<"  ";Bgo1[2]--;Setpos(Bgo1[2],Bgo1[3]);int r=rand()%4;if(r%2==0) Color(6);else Color(9);if(r<2) cout<<") ";else cout<<"】";Color(0);}if(Bgo1[1]==6) Bgo1[5]=X,Bgo1[6]=Y;if(Bgo1[1]==11){Map(0,(bool)Kill);Setpos(Bgo1[5],Bgo1[6]+1),cout<<"  ";Setpos(Bgo1[5],Bgo1[6]-1),cout<<"  ";Setpos(Bgo1[5]+1,Bgo1[6]),cout<<"  ";Setpos(Bgo1[5]-1,Bgo1[6]),cout<<"  ";int bx,by,bvx=Bgo1[2]-Bgo1[5],bvy=Bgo1[3]-Bgo1[6];Color(6);int i=0;while(1){bx=Bgo1[2]-i*bvx/30.0;by=Bgo1[3]-i*bvy/30.0;if(bx<=5||bx>=30||by<0||by>=29) break;Panboss(bx,by);Setpos(bx,by),cout<<"█";Bbl++;Bway[Bbl][0]=bx;Bway[Bbl][1]=by;i++;}Color(0);Map(-1,0);Chang1}}
    if(Bwhat1==5){Bgo1[1]++,Bgo1[2]++;int R=rand()%(5-Bgo1[1]),r=rand()%(10-Bgo1[2]);if(Out1) R=0;if(R==0) {int vx=Bvx1,vy=Bvy1;Bgo1[1]=0;X1:Bvx1=(rand()%101-20)/20.0;Bvy1=(rand()%101-20)/20.0;if(Bgo1[3]<=2) Bvx1*=-1;if(Bgo1[3]%2==1) Bvy1*=-1;if(abs(Bvx1)+abs(Bvy1)<=3||abs(Bvx1-vx)<=1||abs(Bvy1-vy)<=1)goto X1;if(Out1) r=0;} if(r==0) Chang1 }
    if(Bwhat1==6){Bgo1[1]++;if(Bgo1[1]>6&&Bgo1[1]%10==0){By1-=1;br++;B[br].x=Bx1,B[br].y=By1-1;B[br].what=9;X30:B[br].vy=1;B[br].life=1;}if(Bgo1[1]>31) Chang1}
}
void Boss2(){
    for(int j=0;j<20;j++)if(abs(Bx2-I[j][0])<2&&By2-I[j][1]<=2){Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;Bblo-=8+Lv*2;Exp+=2;}
    if(Bbr==Bbl&&Bbr!=0) Bbr=Bbl=0;
    for(int i=1;i<=3+(Bbl-Bbr)/5;i++)if(Bbr<Bbl){Setpos(Bway[Bbr][0],Bway[Bbr][1]);if(Bway[Bbr][0]==20) cout<<"==";else cout<<"  ";Bbr++;}
    Bx2-=Bvx2;By2-=Bvy2;
    if(Bwhat2==0){X21:Bwhat2=rand()%7;if(Bwhat2==2){X31:for(int i=1;i<=3;i++){Bgo2[i*2+1]=rand()%28+1,Bgo2[i*2]=rand()%25+5;if((abs(Bgo2[i*2]-Bx2)<=2&&abs(Bgo2[i*2+1]-By2)<=2)||(abs(Bgo2[i*2]-X)<=2&&abs(Bgo2[i*2+1]-Y)<=2))goto X31;}if(Bgo2[2]==Bgo2[4]||Bgo2[2]==Bgo2[6]||Bgo2[6]==Bgo2[4]||Bgo2[5]==Bgo2[3]||Bgo2[3]==Bgo2[7]||Bgo2[5]==Bgo2[7]) goto X31;}if(Bwhat2==3){Bgo2[2]=rand()%2;}if(Bwhat2==4||Bwhat2==5||Bwhat2==6){Bvy2=-1.5;Bvx2=-0.5;}}
    if(Bwhat2==1){Bgo2[1]++,Bgo2[2]++;int R=rand()%(5-Bgo2[1]),r=rand()%(30-Bgo2[2]);if(Out2) R=0;if(R==0) {int vx=Bvx2,vy=Bvy2;Bgo2[1]=0;Bvx2=(rand()%101-20)/50.0;Bvy2=(rand()%101-20)/50.0;if(Bgo2[3]<=2) Bvx2*=-1;if(Bgo2[3]%2==1) Bvy2*=-1;if(Out2) r=0;} if(r==0) Chang2 }
    if(Bwhat2==2){Bgo2[1]++;float bx,by,bvx,bvy;if(Bgo2[1]<21){for(int i=1;i<=3;i++){bvx=Bgo2[i*2]-Bx2,bvy=Bgo2[i*2+1]-By2;if(Bgo2[1]<=10){Setpos(Bx2+(Bgo2[1]-1)*bvx/10.0,By2+(Bgo2[1]-1)*bvy/10.0);if(abs(Bx2+(Bgo2[1]-1)*bvx/10.0-20)<0.5)cout<<"==";else cout<<"  ";bx=Bx2+Bgo2[1]*bvx/10.0;by=By2+Bgo2[1]*bvy/10.0;Setpos(bx,by);}else Setpos(Bgo2[i*2],Bgo2[i*2+1]);int r=rand()%4;if(r%2==0) Color(3);else Color(10);if(r<=1) cout<<"×";else cout<<"+";Color(0);}}if(Bgo2[1]==21){Map(0,(bool)Kill);Color(3);int j=0;for(int j=0;j<=30;j++)for(int i=1;i<=3;i++)for(int k=1;k<=4;k++){if(k==1) bvx=j,bvy=0;if(k==2) bvx=-j,bvy=0;if(k==3) bvx=0,bvy=j;if(k==4) bvx=0,bvy=-j;bx=Bgo2[i*2]+bvx,by=Bgo2[i*2+1]+bvy;if(bx<=5||bx>=30||by<0||by>=30) {continue;}Panboss(bx,by);Setpos(bx,by),cout<<"█";Bbl++;Bway[Bbl][0]=bx;Bway[Bbl][1]=by;}Color(0);Map(-1,0);Chang2}}
    if(Bwhat2==3){Bgo2[1]++;if(Bgo2[1]<=18){if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"  ",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"  ",Color(0),Setpos(20,Bgo2[5]),cout<<"==";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3.5),cout<<"    ",Setpos(Bgo2[4],Bgo2[5]+2.5),cout<<"    ",Color(0),Setpos(20,Bgo2[5]+2.5),cout<<"====",Setpos(20,Bgo2[5]-3.5),cout<<"====";if(Bgo2[1]%4==0)Bgo2[3]=!Bgo2[3];if(Bgo2[1]%6<3)Color(3);else Color(5);if(Bgo2[3]==0) Setpos(X-3,Y),cout<<"▼",Setpos(X+3,Y),cout<<"▲",Bgo2[4]=(int)(X+0.5),Bgo2[5]=(int)(Y+0.5);if(Bgo2[3]==1) Setpos(X,Y-3),cout<<" ",Setpos(X,Y+3),cout<<" ",Bgo2[4]=(int)(X+0.5),Bgo2[5]=(int)(Y+0.5);Color(0);}if(Bgo2[1]==18){if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"  ",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"  ",Color(0),Setpos(20,Bgo2[5]),cout<<"==";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3.5),cout<<"    ",Setpos(Bgo2[4],Bgo2[5]+2.5),cout<<"    ",Color(0),Setpos(20,Bgo2[5]+2.5),cout<<"====",Setpos(20,Bgo2[5]-3.5),cout<<"====";}if(Bgo2[1]>18&&Bgo2[1]<=25){Bgo2[3]=Bgo2[2];if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"  ",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"  ",Color(0),Setpos(20,Bgo2[5]),cout<<"==";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3.5),cout<<"    ",Setpos(Bgo2[4],Bgo2[5]+2.5),cout<<"    ",Color(0),Setpos(20,Bgo2[5]+2.5),cout<<"====",Setpos(20,Bgo2[5]-3.5),cout<<"====";if(Bgo2[1]%4<2)Color(3);else Color(5);if(Bgo2[3]==0) Setpos(Bgo2[4]-3,Bgo2[5]),cout<<"▼",Setpos(Bgo2[4]+3,Bgo2[5]),cout<<"▲";if(Bgo2[3]==1) Setpos(Bgo2[4],Bgo2[5]-3),cout<<" ",Setpos(Bgo2[4],Bgo2[5]+3),cout<<" ";Color(0);}if(Bgo2[1]==25){if(Bgo2[2]==0){Color(3);for(int i=4;i<=29;i++){Setpos(i,Bgo2[5]),cout<<"█";Bbl++;Panboss(i,Bgo2[5]);Bway[Bbl][0]=i;Bway[Bbl][1]=Bgo2[5];}}if(Bgo2[2]==1){Color(3);for(int i=0;i<=28;i++){Setpos(Bgo2[4],i),cout<<"█";Bbl++;Panboss(Bgo2[4],i);Bway[Bbl][0]=Bgo2[4];Bway[Bbl][1]=i;}}Chang2}}
    if(Bwhat2==4||Bwhat2==5||Bwhat2==6){Bgo2[1]++;if(By2>27)Bvy2=0;if(Bx2>23)Bvx2=0;if(Bgo2[1]>13&&Bgo2[1]%3==0){float t=By2-Y,g=0.35;if(Boss==6) t/=2.0;CpGuai(Bwhat2+2,Bx2,By2,(Bx2-X)/t*1.0+(t-1)*g/2.0,1);}if(Bgo2[1]>20) Chang2}
}
void Boss3(){
    #define Bean br++;B[br].what=13;B[br].x=Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;
    for(int j=0;j<20;j++)if(abs(Bx3-I[j][0])<2&&By3-I[j][1]<=2){Setpos(I[j][0],I[j][1]);if(I[j][0]==20) cout<<"===";else cout<<"   ";I[j][0]=I[j][1]=-1;Bblo-=8+Lv*2;Exp+=2;}
    Bx3-=Bvx3;By3-=Bvy3;
    if(Bwhat3<=8){if(Bx3>X&&Bvx3<1.5) Bvx3+=0.3;if(Bx3<X&&Bvx3>-1.5) Bvx3-=0.3;}
    if(Bwhat3==0){X22:Bwhat3=rand()%12;if(Bwhat3==11&&abs(Bx3-20)<=1)goto X22;if(Bwhat3==11)Bgo3[2]=rand()%5;}
    if(Bwhat3==1){Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].what=13;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=1;B[br].How=(int)Bx3-4;B[br].life=1;br++;B[br].what=13;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=-1;B[br].How=(int)Bx3+2;B[br].life=1;br++;B[br].what=13;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;Chang3}}
    if(Bwhat3>=2&&Bwhat3<=6){Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].what=11+Bwhat3;B[br].vy=0.5+(rand()%100)/80.0;if(Bwhat3==5)B[br].vy=B[br].vy*3/4.0;B[br].life=1;Chang3}}
    if(Bwhat3==7){Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].what=14;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=1;B[br].How=(int)Bx3-4;B[br].life=1;br++;B[br].what=14;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=-1;B[br].How=(int)Bx3+2;B[br].life=1;br++;B[br].what=14;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;Chang3}}
    if(Bwhat3==8){Bgo3[1]++;if(Bgo3[1]==6){br++;B[br].what=15;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=1;B[br].How=(int)Bx3-4;B[br].life=1;br++;B[br].what=15;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].vx=-1;B[br].How=(int)Bx3+2;B[br].life=1;br++;B[br].what=15;B[br].x=(int)Bx3-1,B[br].y=By3-1;B[br].vy=1;B[br].life=1;Chang3}}
    if(Bwhat3==9){Bvx3=0;Bgo3[1]++;if(Bgo3[1]==6||Bgo3[1]==8){Bean}if(Bgo3[1]>=8)Chang3}
    if(Bwhat3==10){Bvx3=0;Bgo3[1]++;if(Bgo3[1]==6||Bgo3[1]==8||Bgo3[1]==10||Bgo3[1]==12){Bean}if(Bgo3[1]>=12)Chang3}
    if(Bwhat3==11){Bvx3=0;Bgo3[1]++;if(Bgo3[1]>=8)for(int i=1;i<=4;i++){br++;B[br].what=80+100*Bgo3[2]+Bgo3[1]*4+i;B[br].x=Bx3-1,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=99;B[br].x=Bx3,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=99;B[br].x=Bx3-2,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;}if(Bgo3[1]>=20){for(int i=1;i<=4;i++){br++;B[br].what=98;B[br].x=Bx3-1,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3-2,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;}Chang3}}
}
void Ball(int ball){
    if(ball==1){if(Fir<3&&T%8==0) Fir++;if(Fir>0){br++;B[br].what=-13;B[br].x=X;B[br].y=Y+rand()%3-1;B[br].life=1;if(Dis<=30) B[br].a=Disb,B[Disb].a=1,Fir--;else if(Boss!=0) B[br].a=13880086,Fir--;else if(Dis!=13880087) B[br].a=Disb,B[Disb].a=1,Fir--;else if(Dis1!=13880087) B[br].a=Disb1,B[Disb1].a=1,Fir--;else B[br].life=0;Dis=Dis1=13880087;}}
    if(ball==2){if(T%4==0)ib=(ib+1)%20,I[ib][1]=Y-2;if(T%16==0)I[ib][0]=X;if(T%16==4)I[ib][0]=X-1;if(T%16==8)I[ib][0]=X+1;if(T%16==12)I[ib][0]=X-2;if(T%12==9)I[ib][0]=X+2;if(Water==1){for(int i=X-6;i<=X+6;i++)ib=(ib+1)%20,I[ib][0]=i,I[ib][1]=Y-2-0.5*abs(i-X);}}
    if(ball==3){if(Wind>5){if(Y<Ding-1)Vy=5;else Vy=0;if(Up>=1) Vx=-5;if(Down==2) Vx=5;}if(Wind<5){if(Y>Ding-1)Vy=-5;else Vy=0;if(Up>=1) Vx=-5;if(Down==2) Vx=5;}if(Wind==5){if(Boss==2) Ding=12.25;else Ding=6.25;if(Boss!=0) Bblo-=16+Lv*4;if(Boss==1) Chang1 if(Boss==2) Chang2 if(Boss==3) Chang3 system("color 3F");Sleep(20);system("color 6F");Sleep(10);system("color 0F");system("cls");for(int i=bl;i<=br;i++)if(B[i].what>0)B[i].life=0;Setpos(20,0);for(int i=1;i<=60;i++) printf("=");}}
    if(ball==4){if(Thun==1){if(Boss!=0) Bblo-=16+Lv*4;if(Boss==1) Chang1 if(Boss==2) Chang2 if(Boss==3) Chang3 system("color 9F");Sleep(20);system("color 6F");Sleep(10);system("color 0F");system("cls");for(int i=bl;i<=br;i++)if(B[i].what>0)B[i].life=0;Setpos(20,0);for(int i=1;i<=60;i++) printf("=");}}
    if(ball==5){system("cls"); Color(5);Setpos(10,10);cout<<"新天赋!";Y:int rr=rand()%4+2;Setpos(12,10);if(rr==Ren) goto Y;if(rr==2)cout<<"瞬跳";if(rr==3)cout<<"空之舞";if(rr==4)cout<<"三段跳";if(rr==5)cout<<"反重力跳跃";Setpos(14,10);cout<<"当前天赋:";if(Ren==1)cout<<"小无敌";if(Ren==2)cout<<"瞬跳";if(Ren==3)cout<<"空之舞";if(Ren==4)cout<<"三段跳";if(Ren==5)cout<<"反重力跳跃";Setpos(16,10);cout<<"换否?(y/n)";G:char g=_getch();if(g=='y')Ren=rr;else if(g!='n')goto G;system("cls");Setpos(20,0);Color(0);for(int i=1;i<=60;i++) printf("=");}
    if(ball==6){Color(4);for(float i=1;i<=Bblo;i+=Bblomax/20.0)cout<<"▄";Color(0);cout<<' '<<Bblo<<"                              ";Color(0);}
    if(ball==7){Color(1);if(Win==7&&T%6<3)Color(3);for(float i=1;i<=Blo;i+=Blomax/20.0)cout<<"▄";Color(0);if(Win==7&&T%6<3)Color(3);printf(" %0.1f                              ",Blo);}
}
int main(){
    system("mode con cols=60 lines=37");CONSOLE_CURSOR_INFO cursor_info={1,0};SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);srand((unsigned)time(NULL));
    Win=0;Ren=1;Lv=1;Blo=Blomax=100;Expmax=300;Hui=15;X=18,Y=6;
    ReStart:system("cls");memset(B,0,sizeof(B));memset(I,-1,sizeof(I));T=0;bl=0;br=-1;Upt=0;
    Start:Blo=Blomax * 100;Ding=6.25;
    memset(Bgo1,0,sizeof(Bgo1));memset(Bgo2,0,sizeof(Bgo2));memset(Bgo3,0,sizeof(Bgo3));
    if(Win%2==0) T=0;if(Win%2==0&&D==0){if(Win>0)Ball(5);Boss=0;lL:L=rand()%4+1;for(int i=0;i<=Win/2-1;i++)if(L==Ll[i]) goto lL;Ll[Win/2]=L;}if(Win%2==1&&D==0){if(Win==7)Boss=6,T=0,Blomax+=100;else{bl:Boss=rand()%3+1;for(int i=0;i<=3;i++)if(Boss==Bl[i]) goto bl;}Bl[Win/2]=Boss;Bwhat1=Bwhat2=Bwhat3=0,Bx1=10,By1=20,Bx2=15,By2=20,Bx3=21,By3=20;system("color 4C");Sleep(20);system("color 0F");Map(0,1);Sleep(1000);}if(Win%2==1){Bblomax=500+(Win/2)*500;Bblo=Bblomax;if(Boss==2) Ding=12.25;}
    while(1){
        T++;
        if(Wind==0){if(GetAsyncKeyState(VK_LEFT)&0x8000) Vy=-(10-abs(Ding-Y)*1.5)/20.0;if(GetAsyncKeyState(VK_RIGHT)&0x8000) Vy=(10-abs(Ding-Y)*1.5)/20.0;}if(GetAsyncKeyState(VK_UP)&0x8000&&u1==0) {u1++;if(Down==1){Down=0;Up=0;if(Ren==2)Map(-1,0),Vx=0,X=18,Li=5;else Vx=7,Vy=0.3;}else if(Up==0&&Wind==0) {Down=0;Up=1;if(Ren==2)Map(-1,0),Vx=1,X=10,Map(0,3),Li=5;else Vx=2,Vy=0.1;}else if(Up==1&&Wind==0) {Down=0;Up=2;if(Ren==2)Map(-1,0),Vx=1,X-=6,Map(0,3),Li=5;else Vx=1.5,Vy=0.1;}else if(Ren==3&&Up==2&&Wind==0) {Down=0;Up=3;Vx=1;Vy=0.5;Upt=30;}else if(Ren==4&&Up==2&&Wind==0) {Down=0;Up=3;Vx=1.8;Vy=0.1;}}if(GetAsyncKeyState(VK_DOWN)&0x8000&&u2==0) {u2++;if(Down==1&&Ren==5){Down=2;Up=0;Vx=-1.7;}else {Down=1;Up=0;if(Ren==2)Map(-1,0),Vx=0,X=22,Map(0,3),Li=5;else {if(Upt!=0) Map(-1,0),Upt=0;Vx=-7;}}}if((GetAsyncKeyState(VK_UP)&0x8000) ?0:1) u1=0;if((GetAsyncKeyState(VK_DOWN)&0x8000) ?0:1) u2=0;if(kbhit()){char g=_getch();if(g==' ') Sleep(100),Setpos(4,1),Sy++,system("pause");}if(Sy==1) Setpos(4,1),printf("                           "),Sy--;
        if(Drug==0) Blo=fmin((float)Blomax,Blo+Hui/100.0);else if(T%10==0)Blo--;if(T%20==0) {if(Kill!=0) Kill=0;if(Lvl!=0) Lvl=0;}if(Killb>0) Killb--;if(Li>0) Li--;if(Ice>0) Ice--;if(Drug>0) Drug--;if(Magne>0) Magne--;
        if(Fire>0) Ball(1),Fire--;if(Water>0) Ball(2),Water--;if(Wind>0) Ball(3),Wind--;if(Thun>0) Ball(4),Thun--;
        if(Boss==0) NorGuai(L,T%1500);RandGood();if(T%20==1)Exp++;
        if(T%50==1){Exp++;system("cls");Setpos(20,0);Color(0);for(int i=1;i<=60;i++) printf("=");if(Win==0&&T<300){Setpos(4,6);cout<<"↑/↓ 跳跃/下翻,←→ 些微移动(松手即返回)"; Setpos(8,6);cout<<"球可以开启特殊效果,经验积满(300)可提升级别。";Setpos(8,6);cout<<"打败 7 波即胜利,打败 BOSS 有新天赋。";Setpos(10,15);cout<<"空格可以暂停。";}}
        Map(-1,0);
        if(Boss==1) Boss1();if(Boss==2) Boss2();if(Boss==3) Boss3();if(Boss==6) Boss1(),Boss2(),Boss3();
        Move();Map(0,(bool)Kill);Color(0);
        Setpos(1,1);Blo=fmin(Blo,(float)Blomax);if(Boss==0)cout<<"血量: "<<(int)Blo<<"  ";Color(0);Setpos(1,9),cout<<"死亡次数: "<<D<<"  ";Setpos(2,1);Exp=min(Exp,Expmax);if(Exp>=Expmax)Exp=0,Lv++,Lvl++,Hui++,Blomax+=5;if(Lvl>0)Color(5);cout<<"级别: "<<Lv;Color(0);Setpos(2,9);cout<<"经验: "<<Exp<<"  ";if(Boss>0) Setpos(3,1),cout<<"血量     : ",Ball(7);if(Boss>0&&Boss!=6) Setpos(4,1),cout<<"怪物血量: ",Ball(6);if(Boss==6) Setpos(1,9),printf("时间: %0.1f s  ",T/15.0);
        if(Win==0) Sleep(55);if(Win==1) Sleep(50);if(Win==2) Sleep(35);if(Win==3) Sleep(40);if(Win==4) Sleep(25);if(Win==5) Sleep(30);if(Win==6) Sleep(20);if(Win>=7) Sleep(17);
        if(Boss==3&&Bblo<=0){for(int i=1;i<=4;i++){br++;B[br].what=98;B[br].x=Bx3-1,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;br++;B[br].what=98;B[br].x=Bx3-2,B[br].y=By3-1+i;B[br].vy=4;B[br].life=1;}}
        if((Win%2==0&&T>=1400)||(Win%2==1&&Bblo<=0)||(Win==7&&T>=450)||Blo<=0) {Map(-1,0);break;}
    }
    if(Blo<=0){
        Sleep(1000);
        D++;
        system("color 7F");
        Setpos(15,11);
        Color(4);
        cout<<"GAME OVER...";
        Sleep(2000);
        goto ReStart;
    }
    else if(Win==6){
        system("color 7F");
        Setpos(15,11);
        Color(4);
        cout<<"坚持30秒 !";
        Sleep(2000);
        Setpos(30,0);
        Win++;
        D=0;
    }
    else if(Win==7){
        Sleep(1000);
        system("color 6E");
        Setpos(15,11);
        Color(5);
        cout<<"YOU WIN !";
        Sleep(2000);
        Setpos(30,0);
        return 0;
    }else Sleep(1000),Win++,D=0;
    goto Start;
}

16、三国杀

#include<iostream>
#include<time.h>
#include<stdio.h>
#include <stdlib.h>
using namespace std;
struct pai
{
    int paifu;
    int huase;
    int yanse;
    int dianshu;
    int leixing;
    int changdu;
    void Kanpai()
    {
        if (paifu == 0 || paifu == 1);
        else
            printf("牌副参数错误!\n");
        switch (huase)
        {
        case 0:cout << "黑桃"; break;
        case 1:cout << "红桃"; break;
        case 2:cout << "草花"; break;
        case 3:cout << "方片"; break;
        case -1:cout << "无色"; break;
        default:printf("花色错误!\n"); break;
        }
        switch (dianshu)
        {
        case 0:cout << "A "; break;
        case 1:cout << "2 "; break;
        case 2:cout << "3 "; break;
        case 3:cout << "4 "; break;
        case 4:cout << "5 "; break;
        case 5:cout << "6 "; break;
        case 6:cout << "7 "; break;
        case 7:cout << "8 "; break;
        case 8:cout << "9 "; break;
        case 9:cout << "10 "; break;
        case 10:cout << "J "; break;
        case 11:cout << "Q "; break;
        case 12:cout << "K "; break;
        case -1:cout << "无点数"; break;
        default:printf("点数错误!\n"); break;
        }
        switch (leixing)
        {
        case 101:cout << "【杀】" << endl; break;
        case 102:cout << "【闪】" << endl; break;
        case 103:cout << "【桃】" << endl; break;
        case 201:cout << "【过河拆桥】" << endl; break;
        case 202:cout << "【顺手牵羊】" << endl; break;
        case 203:cout << "【无中生有】" << endl; break;
        case 204:cout << "【决斗】" << endl; break;
        case 205:cout << "【借刀杀人】" << endl; break;
        case 206:cout << "【桃园结义】" << endl; break;
        case 207:cout << "【五谷丰登】" << endl; break;
        case 208:cout << "【南蛮入侵】" << endl; break;
        case 209:cout << "【万箭齐发】" << endl; break;
        case 210:cout << "【无懈可击】" << endl; break;
        case 251:cout << "【乐不思蜀】" << endl; break;
        case 252:cout << "【闪电】" << endl; break;
        case 301:cout << "【诸葛连弩(1)】" << endl; break;
        case 302:cout << "【雌雄双股剑(2)】" << endl; break;
        case 303:cout << "【青釭剑(2)】" << endl; break;
        case 304:cout << "【青龙偃月刀(3)】" << endl; break;
        case 305:cout << "【丈八蛇矛(3)】" << endl; break;
        case 306:cout << "【贯石斧(3)】" << endl; break;
        case 307:cout << "【方天画戟(4)】" << endl; break;
        case 308:cout << "【麒麟弓(5)】" << endl; break;
        case 331:cout << "【八卦阵】" << endl; break;
        case 361:cout << "【赤兔(-1)】" << endl; break;
        case 362:cout << "【大宛(-1)】" << endl; break;
        case 363:cout << "【紫辛(-1)】" << endl; break;
        case 381:cout << "【爪黄飞电(+1)】" << endl; break;
        case 382:cout << "【的卢(+1)】" << endl; break;
        case 383:cout << "【绝影(+1)】" << endl; break;
        default:printf("类型参数错误!"); break;
        }
    }
};
void Qishixipai(pai A[2][4][13], pai paidui[104])
{
    int i, m, x, y, z, a[104] = { 0 };
    srand((unsigned)time(NULL));
    for (i = 1; i <= 104; i++)
    {
        while (a[m = rand() % 104]);
        a[m] = i;
    }
    for (i = 0; i <= 103; i++)
    {
        x = (a[i] - 1) / 52;
        y = ((a[i] - 1) - 52 * x) / 13;
        z = (a[i] - 1) % 13;
        paidui[i] = A[x][y][z];
    }
}
void Xipai(pai paidui[104], int* paiduishu, pai qipaidui[104], int* qipaishu)
{
    int i, m, a[104] = { 0 };
    srand((unsigned)time(NULL));
    for (i = 1; i <= (*qipaishu); i++)
    {
        while (a[m = rand() % (*qipaishu)]);
        a[m] = i;
    }
    for (i = 0; i <= ((*qipaishu) - 1); i++)
    {
        paidui[i] = qipaidui[a[i]];
        qipaidui[a[i]].leixing = -1;
        (*paiduishu)++;
        (*qipaishu)--;
    }
    for (i = (*paiduishu); i <= 103; i++)paidui[i].leixing = -1;
}
pai Mo1pai(pai A[104], int* x, pai B[104], int* y, int* b)
{
    pai p;
    if ((*x) == 0)Xipai(A, x, B, y);
    else if ((*x) < 0)printf("摸牌参数错误!");
    else;
    p = A[104 - (*x)];
    (*x)--;
    (*b)++;
    return(p);
}
struct wujiang
{
    char name;
    int tili;
    int tilishangxian;
    int shoupaishangxian;
    int huihekaishi;
    int panding;
    int mopai;
    int chupai;
    int qipai;
    int huihejieshu;
    int juese;
    pai shoupai[20];
    int shoupaishu;
    pai zhuangbei[4];
    int zhuangbeishu;
    pai pandingpai[3];
    int pandingshu;
    int juli[1];
    void Kanshoupai()
    {
        printf("玩家当前手牌:\n");
        if (shoupaishu)
        {
            int m;
            for (m = 0; m <= (shoupaishu - 1); m++)
            {
                printf("%d ", m);
                (shoupai[m]).Kanpai();
            }
        }
        else printf("空城!\n");
        printf("\n");
    }
    void Kanzhuangbei()
    {
        if (juese)printf("玩家");
        else printf("电脑");
        printf("当前装备:\n");
        printf("0 武器: ");
        if ((zhuangbei[0]).leixing == -1)printf("空\n");
        else (zhuangbei[0]).Kanpai();
        printf("1 防具: ");
        if ((zhuangbei[1]).leixing == -1)printf("空\n");
        else (zhuangbei[1]).Kanpai();
        printf("2 进攻马: ");
        if ((zhuangbei[2]).leixing == -1)printf("空\n");
        else (zhuangbei[2]).Kanpai();
        printf("3 防御马: ");
        if ((zhuangbei[3]).leixing == -1)printf("空\n");
        else (zhuangbei[3]).Kanpai();
        printf("\n");
    }
    void Kanpandingpai()
    {
        if (juese)printf("玩家");
        else printf("电脑");
        printf("当前判定区:\n");
        if ((pandingpai[0]).leixing == -1)printf("空\n");
        else
        {
            printf("0 ");
            (pandingpai[0]).Kanpai();
            if ((pandingpai[1]).leixing == -1);
            else
            {
                printf("1 ");
                (pandingpai[1]).Kanpai();
                if ((pandingpai[2]).leixing == -1);
                else
                {
                    printf("2 ");
                    (pandingpai[2]).Kanpai();
                }
            }
        }
    }
};
void Mopai(int* shoupaishu, pai shoupai[20], pai A[104], int* x, pai B[104], int* y, int juese)
{
    if (juese)printf("玩家从牌堆摸2张牌\n");
    else printf("电脑从牌堆摸2张牌\n");
    pai p;
    p = Mo1pai(A, x, B, y, shoupaishu);
    shoupai[*shoupaishu - 1] = p;
    pai q;
    q = Mo1pai(A, x, B, y, shoupaishu);
    shoupai[*shoupaishu - 1] = q;
    int m;
    if (juese)
    {
        printf("玩家当前手牌:\n");
        for (m = 0; m <= (*shoupaishu - 1); m++)
        {
            printf("%d ", m);
            (shoupai[m]).Kanpai();
        }
    }
    printf("牌堆还剩%d张牌!\n\n", *x);
}
void Qishishoupai(wujiang* w, pai A[104], int* x, pai B[104], int* y)
{
    pai a;
    a = Mo1pai(A, x, B, y, &((*w).shoupaishu));
    (*w).shoupai[(*w).shoupaishu - 1] = a;
    pai b;
    b = Mo1pai(A, x, B, y, &((*w).shoupaishu));
    (*w).shoupai[(*w).shoupaishu - 1] = b;
    pai c;
    c = Mo1pai(A, x, B, y, &((*w).shoupaishu));
    (*w).shoupai[(*w).shoupaishu - 1] = c;
    pai d;
    d = Mo1pai(A, x, B, y, &((*w).shoupaishu));
    (*w).shoupai[(*w).shoupaishu - 1] = d;
    int m;
    if ((*w).juese)printf("玩家从牌堆摸4张牌\n");
    else printf("电脑从牌堆摸4张牌\n");
    if ((*w).juese)
    {
        printf("玩家当前手牌:\n");
        for (m = 0; m <= ((*w).shoupaishu - 1); m++)
        {
            printf("%d ", m);
            ((*w).shoupai[m]).Kanpai();
        }
    }
    printf("牌堆还剩%d张牌!\n\n", *x);
}
void Panding(pai paidui[104], int* paiduishu, pai qipaidui[104], int* qipaishu)
{
    paidui[*paiduishu].Kanpai();
    qipaidui[*qipaishu] = paidui[*paiduishu];
    (*paiduishu)--;
    (*qipaishu)++;
}
pai Zhangba(wujiang* w, pai qipaidui[104], int* qipaishu)
{
    int x, y;
    pai p;
    for (;;)
    {
        int i, j;
        printf("请输入任意两张手牌之前的编号,以空格隔开,以回车结束!\n");
        scanf("%d", &x);
        scanf("%d", &y);
        if ((x >= 0) && (x < (*w).shoupaishu) && (y >= 0) && (y < (*w).shoupaishu - 1))
        {
            switch ((((*w).shoupai[x].huase) % 2) + (((*w).shoupai[y].huase) % 2))
            {
            case 0:p.yanse = 0; break;
            case 2:p.yanse = 1; break;
            case 1:p.yanse = 2; break;
            default:printf("【丈八蛇矛】函数参数错误!\n");
            }
            qipaidui[*qipaishu] = (*w).shoupai[x];
            (*w).shoupai[x].leixing = -1;
            ((*w).shoupaishu)--;
            (*qipaishu)++;
            qipaidui[*qipaishu] = (*w).shoupai[y];
            (*w).shoupai[y].leixing = -1;
            ((*w).shoupaishu)--;
            (*qipaishu)++; printf("弃牌数:%d", *qipaishu);
            for (i = 0; i <= (((*w).shoupaishu) + 1); i++)
            {
                if ((*w).shoupai[i].leixing == -1)
                {
                    for (j = i + 1; j <= (((*w).shoupaishu) + 2); j++)
                        (*w).shoupai[j - 1] = (*w).shoupai[j];
                    i--;
                }
            }
            printf("玩家把:\n");
            qipaidui[(*qipaishu) - 2].Kanpai();
            qipaidui[(*qipaishu) - 1].Kanpai();
            printf("当作一张");
            switch (p.yanse)
            {
            case 0:printf("黑色"); break;
            case 2:printf("红色"); break;
            case 1:printf("无色"); break;
            default:printf("绿色"); break;
            }
            printf("无点数的【杀】");
            p.dianshu = -1;
            p.leixing = 101;
            return p;
            break;
        }
        printf("你将两张空气当作一张空气属性的【杀】使用或打出!\n");
    }
}
int Xuanpai(wujiang* w, int t)
{
    int x;
    if ((*w).juese)
    {
        for (;;)
        {
            printf("出牌请输入手牌之前的编号,以回车结束!\n如果你想结束出牌阶段,请输入“-1”,以回车结束!\n");
            scanf("%d", &x);
            if ((x >= -1 && x < ((*w).shoupaishu)) || ((x == 100) && ((*w).zhuangbei[0].leixing == 305)))
            {
                return x;
                break;
            }
            printf("你打出了一张空气!\n");
        }
    }
    else return t;
}
pai Panpai(wujiang* w1, int* sha, int y, pai qipaidui[104], int* qipaishu)
{
    pai p, q;
    p.leixing = 0;
    q.leixing = -1;
    if (y == -1)return q;
    else
    {
        if (y == 100)
        {
            if ((*sha) > 0)
            {
                q = Zhangba(w1, qipaidui, qipaishu);
                printf("使用!\n");
                return q;
            }
            else
            {
                printf("当前回合使用【杀】的次数已用尽,你也不能使用【丈八蛇矛】效果!\n");
                return p;
            }
        }
        switch ((*w1).shoupai[y].leixing)
        {
        case 101:
            if (((*sha) > 0) || ((*w1).zhuangbei[0].leixing == 301))
            {
                if (((*w1).zhuangbei[0].leixing == 301))printf("武器【诸葛连弩】效果被触发!\n");
                return (*w1).shoupai[y];
                break;
            }
            else
            {
                if ((*w1).juese)printf("当前回合使用【杀】的次数已用尽,你不能使用【杀】!\n");
                return p; break;
            }
        case 102:
            if ((*w1).juese)
                printf("当前不需要响应任何操作,你不能主动打出【闪】!\n");
            return p; break;
        case 103:
            if (((*w1).tili) < ((*w1).tilishangxian))
            {
                return (*w1).shoupai[y];
                break;
            }
            else
            {
                if ((*w1).juese)
                    printf("你并未受伤,不能对自己使用【桃】!\n");
            }
            return p; break;
        case 210:
            if ((*w1).juese)
                printf("当前不需要响应任何锦囊,你不能主动打出【无懈可击】!\n");
            return p; break;
        case 201:
        case 202:
        case 203:
        case 204:
        case 205:
        case 206:
        case 207:
        case 208:
        case 209:
        case 251:
        case 252:
        case 301:
        case 302:
        case 303:
        case 304:
        case 305:
        case 306:
        case 307:
        case 308:
        case 331:
        case 361:
        case 362:
        case 363:
        case 381:
        case 382:
        case 383:return (*w1).shoupai[y]; break;
        default:printf("手牌类型参数错误!\n"); return p; break;
        }
    }
}
int Mubiao(pai p, wujiang* w1, wujiang* w2, int* sha)
{
    int x;
    switch (p.leixing)
    {
    case 101:
        if ((*w1).juese)
        {
            printf("请选择【杀】的目标!\n输入目标前的编号,以回车结束!\n0 电脑1\n");
            scanf("%d", &x);
            if (x == 0)
            {
                if ((*w1).zhuangbei[0].changdu >= (*w1).juli[0])
                {
                    (*sha)--;
                    return((*w2).juese);
                }
                else
                {
                    printf("武器长度不够!\n");
                    return -2;
                }
            }
            else
            {
                printf("目标错误!\n");
                return -2;
            }
        }
        else
        {
            if ((*w1).zhuangbei[0].changdu >= (*w1).juli[0])
            {
                (*sha)--;
                return((*w2).juese);
            }
            else return -2;
        }
        break;
    case 103:return((*w1).juese); break;
    case 201:
        if ((*w1).juese)
        {
            printf("请选择【过河拆桥】的目标!\n输入目标前的编号,以回车结束!\n0 电脑1\n");
            scanf("%d", &x);
            if (x == 0)
            {
                if ((*w2).shoupaishu || (*w2).zhuangbeishu || (*w2).pandingshu)return((*w2).juese);
                else
                {
                    printf("目标没有牌!\n");
                    return -2;
                }
            }
            else
            {
                printf("目标错误!\n");
                return -2;
            }
        }
        else return((*w2).juese);
        break;
    case 202:
        if ((*w1).juese)
        {
            printf("请选择【顺手牵羊】的目标!\n输入目标前的编号,以回车结束!\n0 电脑1\n");
            scanf("%d", &x);
            if (x == 0)
            {
                if (((*w2).shoupaishu || (*w2).zhuangbeishu || (*w2).pandingshu) && ((*w1).juli[0] <= 1))return((*w2).juese);
                else
                {
                    printf("目标没有牌!\n");
                    return -2;
                }
            }
            else
            {
                printf("目标错误!\n");
                return -2;
            }
        }
        else
        {
            if ((*w1).juli[0] <= 1)return((*w2).juese);
            else return -2;
        }
        break;
    case 203:
        return((*w1).juese); break;
    case 204:
        if ((*w1).juese)
        {
            printf("请选择【决斗】的目标!\n输入目标前的编号,以回车结束!\n0 电脑1\n");
            scanf("%d", &x);
            if (x == 0)return((*w2).juese);
            else
            {
                printf("目标错误!\n");
                return -2;
            }
        }
        else return((*w2).juese);
        break;
    case 205:
        int y;
        if ((*w1).juese)
        {
            printf("请选择【借刀杀人】的目标!\n输入目标前的编号,以回车结束!\n0 电脑1\n");
            scanf("%d", &x);
            if (x != 0)
            {
                printf("目标错误!\n");
                return -2;
            }
            else
            {
                if (((*w2).zhuangbei[0]).leixing <= 300 || ((*w2).zhuangbei[0]).leixing >= 331)
                {
                    printf("目标装备区里没有武器!\n");
                    return -2;
                }
                else
                {
                    printf("请选择【杀】的目标!\n提示:【杀】的目标必须在【借刀杀人】的目标的攻击范围之内!\n输入目标前的编号,以回车结束!\n0 玩家\n");
                    scanf("%d", &y);
                    if (y != 0)
                    {
                        printf("目标错误!\n");
                        return -2;
                    }
                    else
                    {
                        if (((*w2).zhuangbei[0].changdu) < (*w2).juli[0])
                        {
                            printf("武器距离不够!\n");
                            return -2;
                        }
                        else
                            return((*w2).juese);
                    }
                }
            }
        }
        else
        {
            if (((*w2).zhuangbei[0]).leixing <= 300 || ((*w2).zhuangbei[0]).leixing >= 331)return -2;
            else
            {
                if (((*w2).zhuangbei[0].changdu) < (*w2).juli[0])return -2;
                else return((*w2).juese);
            }
        }
        break;
    case 206:
    case 207:return 99; break;
    case 208:
    case 209:return 100; break;
    case 251:
        if ((*w1).juese)
        {
            printf("请选择【乐不思蜀】的目标!\n输入目标前的编号,以回车结束!\n0 电脑1\n");
            scanf("%d", &x);
            if (x == 0)
            {
                int i;
                for (i = 0; i <= 2; i++)
                {
                    if ((*w2).pandingpai[i].leixing == 251)
                        i = -1;
                    break;
                }
                if (i == -1)
                {
                    printf("目标判定区里不能同时存在两张相同的延时类锦囊!\n");
                    return -2;
                }
                else return((*w2).juese);
            }
            else
            {
                printf("目标错误!\n");
                return -2;
            }
        }
        else
        {
            int i;
            for (i = 0; i <= 2; i++)
            {
                if ((*w2).pandingpai[i].leixing == 251)
                    i = -1;
                break;
            }
            if (i == -1)return -2;
            else return((*w2).juese);
        }
        break;
    case 252:
        int i;
        for (i = 0; i <= 2; i++)
        {
            if ((*w1).pandingpai[i].leixing == 252)
                i = -1;
            break;
        }
        if (i == -1)
        {
            if ((*w1).juese)printf("目标判定区里不能同时存在两张相同的延时类锦囊!\n");
            return -2;
        }
        else return ((*w1).juese);
        break;
    case 301:
    case 302:
    case 303:
    case 304:
    case 305:
    case 306:
    case 307:
    case 308:
    case 331:
    case 361:
    case 362:
    case 363:
    case 381:
    case 382:
    case 383:return((*w1).juese); break;
    default:return -2; break;
    }
}
void Da1pai(wujiang* w1, wujiang* w2, pai qipaidui[104], int* qipaishu, int x)
{
    int i;
    if ((x < 0 || x >= ((*w1).shoupaishu)) && x != 100)
        printf("你的牌呢?!\n");
    else
    {
        switch (((*w1).shoupai)[x].leixing)
        {
        case 101:
        case 102:
        case 103:
        case 201:
        case 202:
        case 203:
        case 204:
        case 205:
        case 206:
        case 207:
        case 208:
        case 209:
        case 210:
            qipaidui[*qipaishu] = ((*w1).shoupai)[x];
            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
            ((*w1).shoupaishu)--;
            (*qipaishu)++;
            break;
        case 251:
            for (i = 1; i >= 0; i--)(*w2).pandingpai[i + 1] = (*w2).pandingpai[i];
            (*w2).pandingpai[0] = (*w1).shoupai[x];
            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
            ((*w1).shoupaishu)--;
            ((*w2).pandingshu)++;
            break;
        case 252:
            for (i = 1; i >= 0; i--)(*w1).pandingpai[i + 1] = (*w1).pandingpai[i];
            (*w1).pandingpai[0] = (*w1).shoupai[x];
            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
            ((*w1).shoupaishu)--;
            ((*w1).pandingshu)++;
            break;
        case 301:
        case 302:
        case 303:
        case 304:
        case 305:
        case 306:
        case 307:
        case 308:
            if ((*w1).zhuangbei[0].leixing == -1)((*w1).zhuangbeishu)++;
            else
            {
                qipaidui[*qipaishu] = ((*w1).zhuangbei)[0];
                (*qipaishu)++;
            }
            (*w1).zhuangbei[0] = (*w1).shoupai[x];
            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
            ((*w1).shoupaishu)--;
            break;
        case 331:
            if ((*w1).zhuangbei[1].leixing == -1)((*w1).zhuangbeishu)++;
            else
            {
                qipaidui[*qipaishu] = ((*w1).zhuangbei)[1];
                (*qipaishu)++;
            }
            (*w1).zhuangbei[1] = (*w1).shoupai[x];
            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
            ((*w1).shoupaishu)--;
            break;
        case 361:
        case 362:
        case 363:
            if ((*w1).zhuangbei[2].leixing == -1)((*w1).zhuangbeishu)++;
            else
            {
                qipaidui[*qipaishu] = ((*w1).zhuangbei)[2];
                (*qipaishu)++;
            }
            (*w1).zhuangbei[2] = (*w1).shoupai[x];
            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
            ((*w1).shoupaishu)--;
            break;
        case 381:
        case 382:
        case 383:
            if ((*w1).zhuangbei[3].leixing == -1)((*w1).zhuangbeishu)++;
            else
            {
                qipaidui[*qipaishu] = ((*w1).zhuangbei)[3];
                (*qipaishu)++;
            }
            (*w1).zhuangbei[3] = (*w1).shoupai[x];
            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
            ((*w1).shoupaishu)--;
            break;
        default:break;
        }
    }
}
void Miaoshu(pai p, int juese, int duixiang)
{
    if (juese == 0)printf("电脑");
    else if (juese == 1)printf("玩家");
    else printf("角色参数错误!\n");
    if (p.leixing <= 300 && p.leixing > 100)
    {
        switch (duixiang)
        {
        case -1:printf("打出"); break;
        case 0:printf("对电脑使用"); break;
        case 1:printf("对玩家使用"); break;
        case 99:printf("使用"); break;
        case 100:printf("对所有人使用"); break;
        default:printf("对象参数错误\n"); break;
        }
    }
    else if (p.leixing >= 301 && p.leixing <= 400)
        printf("装备");
    else printf("你出的是什么东西?\n");
    p.Kanpai();
    if (!juese && (p.leixing == 101 || p.leixing == 204 || p.leixing == 205 || p.leixing == 207 || p.leixing == 208 || p.leixing == 209))printf("请响应!\n");
}
int Wuxie(pai* p, wujiang* w1, wujiang* w2, pai qipaidui[104], int* qipaishu, int a)
{
    int x;
    if ((*w1).juese)
    {
        printf("是否使用【无懈可击】响应?\n\n");
        for (;;)
        {
            (*w1).Kanshoupai();
            printf("如果要使用【无懈可击】请输入手牌之前编号,不需要请输入“-1”,以回车结束!\n");
            scanf("%d", &x);
            if (x == -1)
            {
                for (x = 0; x < ((*w2).shoupaishu); x++)
                {
                    if ((*w2).shoupai[x].leixing == 210)
                    {
                        printf("电脑使用");
                        ((*w2).shoupai)[x].Kanpai();
                        printf("对象是");
                        (*p).Kanpai();
                        (*p) = ((*w2).shoupai)[x];
                        qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                        for (int i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                        ((*w2).shoupaishu)--;
                        (*qipaishu)++;
                        a++;
                        break;
                    }
                }
                break;
            }
            else if ((*w1).shoupai[x].leixing == 210)
            {
                printf("玩家使用");
                ((*w1).shoupai)[x].Kanpai();
                printf("对象是");
                (*p).Kanpai();
                (*p) = ((*w1).shoupai)[x];
                qipaidui[*qipaishu] = ((*w1).shoupai)[x];
                for (int i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                ((*w1).shoupaishu)--;
                (*qipaishu)++;
                (*w1).Kanshoupai();
                a++;
                break;
            }
            else printf("你确定你使用的是【无懈可击】?\n");
        }
    }
    else
    {
        printf("是否使用【无懈可击】响应?\n");
        for (;;)
        {
            (*w2).Kanshoupai();
            printf("如果要使用【无懈可击】请输入手牌之前编号,不需要请输入“-1”,以回车结束!\n");
            scanf("%d", &x);
            if (x == -1)break;
            else if ((*w2).shoupai[x].leixing == 210)
            {
                printf("玩家使用");
                ((*w2).shoupai)[x].Kanpai();
                printf("对象是");
                (*p).Kanpai();
                (*p) = ((*w2).shoupai)[x];
                qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                for (int i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                ((*w2).shoupaishu)--;
                (*qipaishu)++;
                (*w2).Kanshoupai();
                a++;
                break;
            }
            else printf("你确定你使用的是【无懈可击】?\n");
        }
    }
    return a;
}
int Qiutao(wujiang* w, pai qipaidui[104], int* qipaishu)
{
    int x;
    if ((*w).juese)
    {
        for (;;)
        {
            printf("如果要使用【桃】请输入手牌之前的编号,不需要请输入“-1”,以回车结束!\n");
            scanf("%d", &x);
            if (x == -1)
            {
                return -1;
                break;
            }
            else if ((*w).shoupai[x].leixing == 103)
            {
                qipaidui[*qipaishu] = ((*w).shoupai)[x];
                for (int i = x + 1; i <= ((*w).shoupaishu); i++)((*w).shoupai)[i - 1] = ((*w).shoupai)[i];
                ((*w).shoupaishu)--;
                (*qipaishu)++;
                return 0;
                break;
            }
            else printf("你确定你使用的是【桃】?\n");
        }
    }
    else
    {
        for (x = 0; x < ((*w).shoupaishu); x++)
        {
            if ((*w).shoupai[x].leixing == 103)
            {
                qipaidui[*qipaishu] = ((*w).shoupai)[x];
                for (int i = x + 1; i <= ((*w).shoupaishu); i++)((*w).shoupai)[i - 1] = ((*w).shoupai)[i];
                ((*w).shoupaishu)--;
                (*qipaishu)++;
                return 0;
                break;
            }
        }
        return -1;
    }
}
int Binsi(wujiang* w1, wujiang* w2, pai qipaidui[104], int* qipaishu)
{
    if (((*w2).tili) > 0)return 0;
    else
    {
        int i;
        if ((*w1).juese)
        {
            for (;;)
            {
                printf("电脑濒死,是否使用【桃】?\n");
                i = Qiutao(w1, qipaidui, qipaishu);
                if (i == 0)((*w2).tili)++;
                if ((i == -1) || ((*w2).tili > 0))break;
            }
            if ((*w2).tili > 0)return 0;
            else
            {
                for (;;)
                {
                    i = Qiutao(w2, qipaidui, qipaishu);
                    if (i == 0)((*w2).tili)++;
                    if ((i == -1) || ((*w2).tili > 0))break;
                }
                if ((*w2).tili > 0)return 0;
                else return -1;
            }
        }
        else
        {
            for (;;)
            {
                printf("玩家濒死,是否使用【桃】?\n");
                i = Qiutao(w2, qipaidui, qipaishu);
                if (i == 0)((*w2).tili)++;
                if ((i == -1) || ((*w2).tili > 0))break;
            }
            if ((*w2).tili > 0)return 0;
            else return -1;
        }
    }
}
int Shan(wujiang* w1, wujiang* w2, pai paidui[104], int* paiduishu, pai qipaidui[104], int* qipaishu)
{
    int x;
    if ((*w2).juese)
    {
        if (((*w2).zhuangbei[1].leixing == 331) && ((*w1).zhuangbei[0].leixing != 303))
        {
            for (;;)
            {
                int m;
                printf("是否发动【八卦阵】防具效果?\n0 否\n1 是\n请输入选项之前的编号,以回车结束!\n");
                scanf("%d", &m);
                if (m == 1)
                {
                    Panding(paidui, paiduishu, qipaidui, qipaishu);
                    if (qipaidui[(*qipaishu) - 1].huase % 2)
                    {
                        printf("【八卦阵】判定成功!\n");
                        return 0;
                    }
                }
                else if (m == 0)
                {
                    printf("【八卦阵】判定失败!\n");
                    break;
                }
                else printf("你确定你输入的是“0”或“1”?\n");
            }
        }
        else if (((*w2).zhuangbei[1].leixing == 331) && ((*w1).zhuangbei[0].leixing == 303))printf("【青釭剑】锁定技被触发!\n");
        for (;;)
        {
            printf("请输入手牌之前的编号,或者输入“-1”放弃打出【闪】,以回车结束!\n");
            scanf("%d", &x);
            if (x == -1)
            {
                return -1;
                break;
            }
            else if ((*w2).shoupai[x].leixing == 102)
            {
                printf("玩家打出");
                ((*w2).shoupai)[x].Kanpai();
                qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                for (int i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                ((*w2).shoupaishu)--;
                (*qipaishu)++;
                return 0;
                break;
            }
            else printf("你确定你打出的是【闪】?\n");
        }
    }
    else
    {
        if (((*w2).zhuangbei[1].leixing == 331) && ((*w1).zhuangbei[0].leixing != 303))
        {
            Panding(paidui, paiduishu, qipaidui, qipaishu);
            if (qipaidui[(*qipaishu) - 1].huase % 2)
            {
                printf("【八卦阵】判定成功!\n");
                return 0;
            }
            else printf("【八卦阵】判定失败!\n");
        }
        else if (((*w2).zhuangbei[1].leixing == 331) && ((*w1).zhuangbei[0].leixing == 303))printf("【青釭剑】锁定技被触发!\n");
        int i;
        for (x = 0; x < ((*w2).shoupaishu); x++)
        {
            if ((*w2).shoupai[x].leixing == 102)
            {
                printf("电脑打出");
                ((*w2).shoupai)[x].Kanpai();
                qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                for (i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                ((*w2).shoupaishu)--;
                (*qipaishu)++;
                return 0;
                break;
            }
        }
        return -1;
    }
}
int Sha(wujiang* w1, wujiang* w2, pai paidui[104], int* paiduishu, pai qipaidui[104], int* qipaishu)
{
    int x;
    if ((*w2).juese)
    {
        printf("请打出【闪】响应【杀】!否则你将受到1点伤害!\n");
        x = Shan(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
        if (x == -1)
        {
            int i;
            ((*w2).tili)--;
            printf("电脑对玩家造成1点伤害!\n");
            i = Binsi(w1, w2, qipaidui, qipaishu);
            return i;
        }
        else if (x == 0 && ((*w1).zhuangbei[0].leixing == 306))
        {
            int i;
            if (((*w1).shoupaishu) >= 2)
            {
                printf("电脑弃掉:\n");
                ((*w1).shoupai)[0].Kanpai();
                qipaidui[*qipaishu] = ((*w1).shoupai)[0];
                for (i = 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                ((*w1).shoupaishu)--;
                (*qipaishu)++;
                ((*w1).shoupai)[0].Kanpai();
                qipaidui[*qipaishu] = ((*w1).shoupai)[0];
                for (i = 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                ((*w1).shoupaishu)--;
                (*qipaishu)++;
                printf("发动【贯石斧】武器效果使【杀】造成伤害!\n");
                ((*w2).tili)--;
                i = Binsi(w1, w2, qipaidui, qipaishu);
                return i;
            }
            else return 0;
        }
        else if (x == 0 && ((*w1).zhuangbei[0].leixing == 304))
        {
            int i;
            for (x = 0; x < ((*w1).shoupaishu); x++)
            {
                if ((*w1).shoupai[x].leixing == 101)
                {
                    printf("电脑发动【青龙偃月刀】效果对玩家使用");
                    ((*w1).shoupai)[x].Kanpai();
                    qipaidui[*qipaishu] = ((*w1).shoupai)[x];
                    for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                    ((*w1).shoupaishu)--;
                    (*qipaishu)++;
                    i = Sha(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
                    return i;
                    break;
                }
            }
            return 0;
        }
    }
    else
    {
        x = Shan(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
        if (x == -1)
        {
            if ((*w1).zhuangbei[0].leixing == 308)
            {
                for (;;)
                {
                    printf("是否发动【麒麟弓】武器效果?\n0 否\n1 是\n");
                    scanf("%d", &x);
                    if (x == 1)
                    {
                        if (((*w2).zhuangbei[2].leixing == -1) && ((*w2).zhuangbei[3].leixing == -1))
                        {
                            printf("电脑根本没有马,射你妹的马啊!\n");
                            break;
                        }
                        else
                        {
                            for (;;)
                            {
                                printf("0 ");
                                ((*w2).zhuangbei[2]).Kanpai();
                                printf("1 ");
                                ((*w2).zhuangbei[3]).Kanpai();
                                printf("请选择要弃掉的马,输入之前的编号,以回车结束!\n");
                                scanf("%d", &x);
                                if ((x == 0) && ((*w2).zhuangbei[2].leixing != -1))
                                {
                                    printf("你弃掉了电脑的");
                                    ((*w2).zhuangbei)[2].Kanpai();
                                    qipaidui[*qipaishu] = ((*w2).zhuangbei)[2];
                                    ((*w2).zhuangbeishu)--;
                                    (*qipaishu)++;
                                    ((*w2).zhuangbei)[2].leixing = -1;
                                    ((*w2).juli[0])++;
                                    break;
                                }
                                else if ((x == 1) && ((*w2).zhuangbei[3].leixing != -1))
                                {
                                    printf("你弃掉了电脑的");
                                    ((*w2).zhuangbei)[3].Kanpai();
                                    qipaidui[*qipaishu] = ((*w2).zhuangbei)[3];
                                    ((*w2).zhuangbeishu)--;
                                    (*qipaishu)++;
                                    ((*w2).zhuangbei)[3].leixing = -1;
                                    ((*w1).juli[0])--;
                                    break;
                                }
                                else printf("射你妹的马!");
                            }
                            break;
                        }
                    }
                    else if (x == 0)break;
                    else printf("键盘上的“0”和“1”被你吃了吗?\n");
                }
            }
            int i;
            ((*w2).tili)--;
            printf("玩家对电脑造成1点伤害!\n");
            i = Binsi(w1, w2, qipaidui, qipaishu);
            return i;
        }
        else if (x == 0 && ((*w1).zhuangbei[0].leixing == 306))
        {
            for (;;)
            {
                printf("是否发动【贯石斧】武器效果?\n0 否\n1 是\n");
                scanf("%d", &x);
                if (x == 1)
                {
                    int i;
                    if ((*w1).shoupaishu + (*w1).zhuangbeishu <= 2)
                    {
                        printf("你除了【贯石斧】以外连2张牌都没有,发动你妹的效果!\n");
                        break;
                    }
                    else
                    {
                        printf("请分别弃掉两张牌!\n");
                        for (i = 0; i <= 2; i++)
                        {
                            for (;;)
                            {
                                printf("请选择区域:\n0 手牌\n1 装备\n");
                                scanf("%d", &x);
                                if (x == 0 && ((*w1).shoupaishu == 0))printf("你根本没有手牌,弃你妹啊!\n");
                                else if (x == 1 && ((*w1).zhuangbeishu == 1))printf("你根本没有别的装备,弃你妹啊!\n");
                                else if (x >= 0 && x <= 1)break;
                                else printf("键盘上的“0”和“1”被你吃了吗?\n");
                            }
                            if (x == 0)
                            {
                                for (;;)
                                {
                                    (*w1).Kanshoupai();
                                    printf("弃牌请输入手牌之前的编号,以回车结束!\n");
                                    scanf("%d", &x);
                                    if (x >= 0 && x < ((*w1).shoupaishu))break;
                                    else printf("弃你妹的手牌!\n");
                                }
                                printf("你弃掉了");
                                ((*w1).shoupai)[x].Kanpai();
                                qipaidui[*qipaishu] = ((*w1).shoupai)[x];
                                for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                                ((*w1).shoupaishu)--;
                                (*qipaishu)++;
                            }
                            else
                            {
                                for (;;)
                                {
                                    (*w1).Kanzhuangbei();
                                    printf("请输入装备之前的编号,以回车键结束!\n");
                                    scanf("%d", &x);
                                    if ((((*w1).zhuangbei[x]).leixing != -1) && (x >= 0) && (x <= 3))
                                    {
                                        printf("你弃掉了");
                                        ((*w1).zhuangbei)[x].Kanpai();
                                        qipaidui[*qipaishu] = ((*w1).zhuangbei)[x];
                                        ((*w1).zhuangbeishu)--;
                                        (*qipaishu)++;
                                        ((*w1).zhuangbei)[x].leixing = -1;
                                        break;
                                    }
                                    else printf("弃你妹的装备!\n");
                                }
                            }
                        }
                    }
                    printf("玩家发动【贯石斧】武器效果使【杀】造成伤害!\n");
                    ((*w2).tili)--;
                    i = Binsi(w1, w2, qipaidui, qipaishu);
                    return i;
                    break;
                }
                else if (x == 0)break;
                else printf("键盘上的“0”和“1”被你吃了吗?\n");
            }
        }
        else if (x == 0 && ((*w1).zhuangbei[0].leixing == 304))
        {
            for (;;)
            {
                printf("是否发动【青龙偃月刀】武器效果?\n0 否\n1 是\n");
                scanf("%d", &x);
                if (x == 1)
                {
                    for (;;)
                    {
                        printf("请对电脑使用一张【杀】!\n请输入手牌之前的编号,或者输入“-1”放弃出【杀】,以回车结束!\n");
                        (*w1).Kanshoupai();
                        scanf("%d", &x);
                        if (x == -1)
                        {
                            return 0;
                            break;
                        }
                        else if ((*w1).shoupai[x].leixing == 101)
                        {
                            int i;
                            printf("玩家对电脑使用");
                            ((*w1).shoupai)[x].Kanpai();
                            qipaidui[*qipaishu] = ((*w1).shoupai)[x];
                            for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                            ((*w1).shoupaishu)--;
                            (*qipaishu)++;
                            i = Sha(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
                            return i;
                            break;
                        }
                        else printf("你确定你打出的是【杀】?\n");
                    }
                }
                else if (x == 0)
                {
                    return 0;
                    break;
                }
                else printf("你确定你输入的是“0”或“1”?\n");
            }
        }
        else return 0;
    }
    return 0;
}
void Tao(wujiang* w1)
{
    ((*w1).tili)++;
    if ((*w1).juese)printf("玩家");
    else printf("电脑");
    printf("恢复了1点体力!\n");
    if (((*w1).tili) > ((*w1).tilishangxian))printf("你被撑死了!\n");
}
void Chai(wujiang* w1, wujiang* w2, pai qipaidui[104], int* qipaishu)
{
    int i, x, y;
    if ((*w1).juese)
    {
        for (;;)
        {
            if ((*w2).shoupaishu + (*w2).zhuangbeishu + (*w2).pandingshu == 0)
            {
                printf("对方空城,拆你妹啊!\n");
                break;
            }
            else
            {
                printf("请选择想拆的区域,输入选项之前的编号,以回车结束!\n0 手牌\n1 装备区\n2 判定区\n");
                scanf("%d", &x);
                if (x == 0 && ((*w2).shoupaishu == 0))printf("你拆掉了一张空气!\n");
                else if (x == 1 && ((*w2).zhuangbeishu == 0))printf("你拆掉了一张空气!\n");
                else if (x == 2 && ((*w2).pandingshu == 0))printf("你拆掉了一张空气!\n");
                else if (x >= 0 && x <= 2)break;
                else printf("你拆掉了太空区里的一张牌!\n");
            }
        }
        switch (x)
        {
        case 0:
            srand((unsigned)time(NULL));
            y = rand() % ((*w2).shoupaishu);
            printf("你弃掉了电脑的");
            ((*w2).shoupai)[y].Kanpai();
            qipaidui[*qipaishu] = ((*w2).shoupai)[y];
            for (i = y + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
            ((*w2).shoupaishu)--;
            (*qipaishu)++;
            break;
        case 1:
            for (;;)
            {
                (*w2).Kanzhuangbei();
                printf("请输入装备之前的编号,以回车键结束!\n");
                scanf("%d", &y);
                if ((((*w2).zhuangbei[y]).leixing != -1) && (y >= 0) && (y <= 3))
                {
                    printf("你弃掉了电脑的");
                    ((*w2).zhuangbei)[y].Kanpai();
                    qipaidui[*qipaishu] = ((*w2).zhuangbei)[y];
                    ((*w2).zhuangbeishu)--;
                    (*qipaishu)++;
                    ((*w2).zhuangbei)[y].leixing = -1;
                    if (!y)((*w2).zhuangbei)[y].changdu = 1;
                    else if (y == 2)((*w2).juli[0])++;
                    else if (y == 3)((*w1).juli[0])--;
                    break;
                }
                else printf("你弃掉了一张空气!\n");
            }
            break;
        case 2:
            for (;;)
            {
                (*w2).Kanpandingpai();
                printf("请输入判定牌之前的编号,以回车键结束!\n");
                scanf("%d", &y);
                if ((*w2).pandingpai[y].leixing != -1)
                {
                    printf("你弃掉了电脑的");
                    ((*w2).pandingpai)[y].Kanpai();
                    qipaidui[*qipaishu] = ((*w2).pandingpai)[y];
                    ((*w2).pandingshu)--;
                    (*qipaishu)++;
                    ((*w2).pandingpai)[y].leixing = -1;
                    break;
                }
                else printf("你弃掉了一张空气!\n");
            }
            break;
        default:break;
        }
    }
    else
    {
        if ((*w2).zhuangbeishu)
        {
            if ((*w2).zhuangbei[1].leixing != -1)
            {
                printf("电脑弃掉了玩家的");
                ((*w2).zhuangbei)[1].Kanpai();
                qipaidui[*qipaishu] = ((*w2).zhuangbei)[1];
                ((*w2).zhuangbeishu)--;
                (*qipaishu)++;
                ((*w2).zhuangbei)[1].leixing = -1;
            }
            else if ((*w2).zhuangbei[3].leixing != -1)
            {
                printf("电脑弃掉了玩家的");
                ((*w2).zhuangbei)[3].Kanpai();
                qipaidui[*qipaishu] = ((*w2).zhuangbei)[3];
                ((*w2).zhuangbeishu)--;
                (*qipaishu)++;
                ((*w2).zhuangbei)[3].leixing = -1;
                ((*w1).juli[0])--;
            }
            else if ((*w2).zhuangbei[0].leixing != -1)
            {
                printf("电脑弃掉了玩家的");
                ((*w2).zhuangbei)[0].Kanpai();
                qipaidui[*qipaishu] = ((*w2).zhuangbei)[0];
                ((*w2).zhuangbeishu)--;
                (*qipaishu)++;
                ((*w2).zhuangbei)[0].leixing = -1;
                ((*w2).zhuangbei)[0].changdu = 1;
            }
            else
            {
                printf("电脑弃掉了玩家的");
                ((*w2).zhuangbei)[2].Kanpai();
                qipaidui[*qipaishu] = ((*w2).zhuangbei)[2];
                ((*w2).zhuangbeishu)--;
                (*qipaishu)++;
                ((*w2).zhuangbei)[2].leixing = -1;
                ((*w2).juli[0])++;
            }
        }
        else
        {
            srand((unsigned)time(NULL));
            y = rand() % ((*w2).shoupaishu);
            printf("电脑弃掉了玩家的手牌");
            ((*w2).shoupai)[y].Kanpai();
            qipaidui[*qipaishu] = ((*w2).shoupai)[y];
            for (i = y + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
            ((*w2).shoupaishu)--;
            (*qipaishu)++;
        }
    }
}
void Qian(wujiang* w1, wujiang* w2)
{
    int i, x, y;
    if ((*w1).juese)
    {
        for (;;)
        {
            if ((*w2).shoupaishu + (*w2).zhuangbeishu + (*w2).pandingshu == 0)
            {
                printf("对方空城啦!你牵走了一张寂寞!\n");
                break;
            }
            else
            {
                printf("请选择想牵的区域,输入选项之前的编号,以回车结束!\n0 手牌\n1 装备区\n2 判定区\n");
                scanf("%d", &x);
                if (x == 0 && ((*w2).shoupaishu == 0))printf("你牵走了一张空气!\n");
                else if (x == 1 && ((*w2).zhuangbeishu == 0))printf("你牵走了一张空气!\n");
                else if (x == 2 && ((*w2).pandingshu == 0))printf("你牵走了一张空气!\n");
                else if (x >= 0 && x <= 2)break;
                else printf("你牵走了太空区里的一张牌!\n");
            }
        }
        switch (x)
        {
        case 0:
            srand((unsigned)time(NULL));
            y = rand() % ((*w2).shoupaishu);
            printf("你牵走了电脑的");
            ((*w2).shoupai)[y].Kanpai();
            (*w1).shoupai[(*w1).shoupaishu] = ((*w2).shoupai)[y];
            for (i = y + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
            ((*w2).shoupaishu)--;
            ((*w1).shoupaishu)++;
            break;
        case 1:
            for (;;)
            {
                (*w2).Kanzhuangbei();
                printf("请输入装备之前的编号,以回车键结束!\n");
                scanf("%d", &y);
                if ((((*w2).zhuangbei[y]).leixing != -1) && (y >= 0) && (y <= 3))
                {
                    printf("你牵走了电脑的");
                    ((*w2).zhuangbei)[y].Kanpai();
                    (*w1).shoupai[(*w1).shoupaishu] = ((*w2).zhuangbei)[y];
                    ((*w2).zhuangbeishu)--;
                    ((*w1).shoupaishu)++;
                    ((*w2).zhuangbei)[y].leixing = -1;
                    if (!y)((*w2).zhuangbei[y]).changdu = 1;
                    else if (y == 2)((*w2).juli[0])++;
                    else if (y == 3)((*w1).juli[0])--;
                    break;
                }
                else printf("你弃掉了一张空气!\n");
            }
            break;
        case 2:
            for (;;)
            {
                (*w2).Kanpandingpai();
                printf("请输入判定牌之前的编号,以回车键结束!\n");
                scanf("%d", &y);
                if ((*w2).pandingpai[y].leixing != -1)
                {
                    printf("你牵走了电脑的");
                    ((*w2).pandingpai)[y].Kanpai();
                    (*w1).shoupai[(*w1).shoupaishu] = ((*w2).pandingpai)[y];
                    ((*w2).pandingshu)--;
                    ((*w1).shoupaishu)++;
                    ((*w2).pandingpai)[y].leixing = -1;
                    break;
                }
                else printf("你牵走了一张空气!\n");
            }
            break;
        default:break;
        }
    }
    else
    {
        if ((*w2).zhuangbeishu)
        {
            if ((*w2).zhuangbei[1].leixing != -1)
            {
                printf("电脑牵走了玩家的");
                ((*w2).zhuangbei)[1].Kanpai();
                (*w1).shoupai[(*w1).shoupaishu] = ((*w2).zhuangbei)[1];
                ((*w2).zhuangbeishu)--;
                ((*w1).shoupaishu)++;
                ((*w2).zhuangbei)[1].leixing = -1;
            }
            else if ((*w2).zhuangbei[3].leixing != -1)
            {
                printf("电脑牵走了玩家的");
                ((*w2).zhuangbei)[3].Kanpai();
                (*w1).shoupai[(*w1).shoupaishu] = ((*w2).zhuangbei)[3];
                ((*w2).zhuangbeishu)--;
                ((*w1).shoupaishu)++;
                ((*w2).zhuangbei)[3].leixing = -1;
                ((*w1).juli[0])--;
            }
            else if ((*w2).zhuangbei[0].leixing != -1)
            {
                printf("电脑牵走了玩家的");
                ((*w2).zhuangbei)[0].Kanpai();
                (*w1).shoupai[(*w1).shoupaishu] = ((*w2).zhuangbei)[0];
                ((*w2).zhuangbeishu)--;
                ((*w1).shoupaishu)++;
                ((*w2).zhuangbei)[0].leixing = -1;
                ((*w2).zhuangbei)[0].changdu = 1;
            }
            else
            {
                printf("电脑牵走了玩家的");
                ((*w2).zhuangbei)[2].Kanpai();
                (*w1).shoupai[(*w1).shoupaishu] = ((*w2).zhuangbei)[2];
                ((*w2).zhuangbeishu)--;
                ((*w1).shoupaishu)++;
                ((*w2).zhuangbei)[2].leixing = -1;
                ((*w2).juli[0])--;
            }
        }
        else
        {
            srand((unsigned)time(NULL));
            y = rand() % ((*w2).shoupaishu);
            printf("电脑牵走了玩家的手牌");
            ((*w2).shoupai)[y].Kanpai();
            (*w1).shoupai[(*w1).shoupaishu] = ((*w2).shoupai)[y];
            for (i = y + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
            ((*w2).shoupaishu)--;
            ((*w1).shoupaishu)++;
        }
    }
}
void Wuzhong(wujiang* w1, pai A[104], int* x, pai B[104], int* y)
{
    Mopai(&((*w1).shoupaishu), (*w1).shoupai, A, x, B, y, (*w1).juese);
}
int Juedou(wujiang* w1, wujiang* w2, pai qipaidui[104], int* qipaishu)
{
    int i, j, x;
    if ((*w1).juese)
    {
        for (;;)
        {
            j = 0;
            for (x = 0; x < ((*w2).shoupaishu); x++)
            {
                if ((*w2).shoupai[x].leixing == 101)
                {
                    printf("电脑打出");
                    ((*w2).shoupai)[x].Kanpai();
                    qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                    for (int i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                    ((*w2).shoupaishu)--;
                    (*qipaishu)++;
                    j = 1;
                    break;
                }
            }
            if (!j)
            {
                printf("玩家对电脑造成1点伤害!\n");
                ((*w2).tili)--;
                i = Binsi(w1, w2, qipaidui, qipaishu);
                return i;
                break;
            }
            j = 0;
            for (;;)
            {
                printf("请打出一张【杀】响应【决斗】,否则你将受到1点伤害!\n请输入手牌之前的编号,或者输入“-1”放弃出【杀】,以回车结束!\n");
                if (((*w1).zhuangbei[0].leixing == 305))printf("如果想发动【丈八蛇矛】效果,请输入“100”,以回车结束!\n");
                (*w1).Kanshoupai();
                scanf("%d", &x);
                if (x == -1)
                {
                    int i;
                    ((*w1).tili)--;
                    printf("电脑对玩家造成1点伤害!\n");
                    i = Binsi(w2, w1, qipaidui, qipaishu);
                    return i;
                    break;
                }
                else if (((*w1).zhuangbei[0].leixing == 305) && x == 100)
                {
                    pai p = Zhangba(w1, qipaidui, qipaishu);
                    p.paifu = -1;
                    printf("打出!\n");
                    j = 1;
                    break;
                }
                else if ((*w1).shoupai[x].leixing == 101)
                {
                    printf("玩家打出");
                    ((*w1).shoupai)[x].Kanpai();
                    qipaidui[*qipaishu] = ((*w1).shoupai)[x];
                    for (i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                    ((*w1).shoupaishu)--;
                    (*qipaishu)++;
                    j = 1;
                    break;
                }
                else printf("你确定你打出的是【杀】?\n");
            }
        }
    }
    else
    {
        for (;;)
        {
            j = 0;
            for (;;)
            {
                printf("请打出一张【杀】响应【决斗】,否则你将受到1点伤害!\n请输入手牌之前的编号,或者输入“-1”放弃出【杀】,以回车结束!\n");
                if (((*w1).zhuangbei[0].leixing == 305))printf("如果想发动【丈八蛇矛】效果,请输入“100”,以回车结束!\n");
                (*w2).Kanshoupai();
                scanf("%d", &x);
                if (x == -1)
                {
                    int i;
                    ((*w2).tili)--;
                    printf("电脑对玩家造成1点伤害!\n");
                    i = Binsi(w1, w2, qipaidui, qipaishu);
                    return i;
                    break;
                }
                else if (((*w2).zhuangbei[0].leixing == 305) && x == 100)
                {
                    pai p = Zhangba(w2, qipaidui, qipaishu);
                    p.paifu = -1;
                    printf("打出!\n");
                    j = 1;
                    break;
                }
                else if ((*w2).shoupai[x].leixing == 101)
                {
                    printf("玩家打出");
                    ((*w2).shoupai)[x].Kanpai();
                    qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                    for (i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                    ((*w2).shoupaishu)--;
                    (*qipaishu)++;
                    j = 1;
                    break;
                }
                else printf("你确定你打出的是【杀】?\n");
            }
            j = 0;
            for (x = 0; x < ((*w1).shoupaishu); x++)
            {
                if ((*w1).shoupai[x].leixing == 101)
                {
                    printf("电脑打出");
                    ((*w1).shoupai)[x].Kanpai();
                    qipaidui[*qipaishu] = ((*w1).shoupai)[x];
                    for (int i = x + 1; i <= ((*w1).shoupaishu); i++)((*w1).shoupai)[i - 1] = ((*w1).shoupai)[i];
                    ((*w1).shoupaishu)--;
                    (*qipaishu)++;
                    j = 1;
                    break;
                }
            }
            if (!j)
            {
                printf("玩家对电脑造成1点伤害!\n");
                ((*w2).tili)--;
                i = Binsi(w2, w1, qipaidui, qipaishu);
                return i;
                break;
            }
        }
    }
}
int Jiedao(wujiang* w1, wujiang* w2, pai paidui[104], int* paiduishu, pai qipaidui[104], int* qipaishu)
{
    int i, j = 0, x;
    if ((*w1).juese)
    {
        for (x = 0; x < ((*w2).shoupaishu); x++)
        {
            if ((*w2).shoupai[x].leixing == 101)
            {
                printf("电脑对玩家使用");
                ((*w2).shoupai)[x].Kanpai();
                qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                for (int i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                ((*w2).shoupaishu)--;
                (*qipaishu)++;
                j = 1;
                break;
            }
        }
        if (j)
        {
            i = Sha(w2, w1, paidui, paiduishu, qipaidui, qipaishu);
            return i;
            printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w1).tili, (*w1).tilishangxian, (*w2).tili, (*w2).tilishangxian);
        }
        else
        {
            printf("电脑放弃使用【杀】,玩家获得电脑的武器");
            (*w2).zhuangbei[0].Kanpai();
            (*w1).shoupai[(*w1).shoupaishu] = ((*w2).zhuangbei)[0];
            ((*w2).zhuangbeishu)--;
            ((*w1).shoupaishu)++;
            ((*w2).zhuangbei)[0].leixing = -1;
            ((*w2).zhuangbei)[0].changdu = 1;
            (*w1).Kanshoupai();
            return 0;
        }
    }
    else
    {
        for (;;)
        {
            printf("请对电脑使用一张【杀】,否则电脑将获得你的武器!\n请输入手牌之前的编号,或者输入“-1”放弃出【杀】,以回车结束!\n");
            if (((*w2).zhuangbei[0].leixing == 305))printf("如果想发动【丈八蛇矛】效果,请输入“100”,以回车结束!\n");
            (*w2).Kanshoupai();
            scanf("%d", &x);
            if (x == -1)break;
            else if (((*w2).zhuangbei[0].leixing == 305) && x == 100)
            {
                pai p = Zhangba(w2, qipaidui, qipaishu);
                p.paifu = -1;
                printf("使用!\n");
                j = 1;
                break;
            }
            else if ((*w2).shoupai[x].leixing == 101)
            {
                printf("玩家对电脑使用");
                ((*w2).shoupai)[x].Kanpai();
                qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                for (i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                ((*w2).shoupaishu)--;
                (*qipaishu)++;
                j = 1;
                break;
            }
            else printf("你确定你使用的是【杀】?\n");
        }
        if (j)
        {
            i = Sha(w2, w1, paidui, paiduishu, qipaidui, qipaishu);
            return i;
            printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w2).tili, (*w2).tilishangxian, (*w1).tili, (*w1).tilishangxian);
        }
        else
        {
            printf("玩家放弃使用【杀】,电脑获得玩家的武器");
            ((*w2).zhuangbei)[0].Kanpai();
            (*w1).shoupai[(*w1).shoupaishu] = ((*w2).zhuangbei)[0];
            ((*w2).zhuangbeishu)--;
            ((*w1).shoupaishu)++;
            ((*w2).zhuangbei)[0].leixing = -1;
            ((*w2).zhuangbei)[0].changdu = 1;
            return 0;
        }
    }
}
void Taoyuan(wujiang* w)
{
    if ((*w).tili < (*w).tilishangxian)
    {
        ((*w).tili)++;
        if ((*w).juese)printf("玩家");
        else printf("电脑");
        printf("恢复1点体力!\n");
    }
}
void Kaipai(pai paidui[104], int* paiduishu, int renshu, pai wugu[10])
{
    int i;
    printf("五谷丰登开牌:\n");
    for (i = 1; i <= renshu; i++)
    {
        wugu[i - 1] = paidui[104 - (*paiduishu)];
        (*paiduishu)--;
        printf("%d ", i - 1);
        wugu[i - 1].Kanpai();
    }
}
void Qupai(pai wugu[10], wujiang* w)
{
    int i, x;
    printf("五谷丰登开牌:\n");
    for (i = 0; (wugu[i].leixing) != -1; i++)
    {
        printf("%d ", i);
        wugu[i].Kanpai();
    }
    if ((*w).juese)
    {
        for (;;)
        {
            printf("请选择你想要的卡牌,输入卡牌之前的编号,以回车结束!\n");
            scanf("%d", &x);
            if (wugu[x].leixing != -1)
            {
                printf("玩家选择");
                wugu[x].Kanpai();
                (*w).shoupai[(*w).shoupaishu] = wugu[x];
                ((*w).shoupaishu)++;
                for (i = x + 1; i <= 9; i++)wugu[i - 1] = wugu[i];
                wugu[9].leixing = -1;
                break;
            }
            printf("你选择了一张空气加入手牌!");
        }
    }
    else
    {
        printf("电脑选择");
        wugu[0].Kanpai();
        (*w).shoupai[(*w).shoupaishu] = wugu[0];
        ((*w).shoupaishu)++;
        for (i = 1; i <= 9; i++)wugu[i - 1] = wugu[i];
        wugu[9].leixing = -1;
    }
}
void Rengpai(pai wugu[10], pai qipaidui[104], int* qipaishu)
{
    int i;
    for (i = 0; wugu[i].leixing != -1; i++)
    {
        qipaidui[*qipaishu] = wugu[i];
        (*qipaishu)++;
        wugu[i].leixing = -1;
    }
}
int Nanman(wujiang* w1, wujiang* w2, pai qipaidui[104], int* qipaishu)
{
    int i, x;
    if ((*w1).juese)
    {
        for (x = 0; x < ((*w2).shoupaishu); x++)
        {
            if ((*w2).shoupai[x].leixing == 101)
            {
                printf("电脑打出");
                ((*w2).shoupai)[x].Kanpai();
                qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                for (int i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                ((*w2).shoupaishu)--;
                (*qipaishu)++;
                return 0;
                break;
            }
        }
        printf("玩家对电脑造成1点伤害!\n");
        ((*w2).tili)--;
        i = Binsi(w1, w2, qipaidui, qipaishu);
        return i;
    }
    else
    {
        for (;;)
        {
            printf("请打出一张【杀】响应【南蛮入侵】,否则你将受到1点伤害!\n请输入手牌之前的编号,或者输入“-1”放弃出【杀】,以回车结束!\n");
            if (((*w2).zhuangbei[0].leixing == 305))printf("如果想发动【丈八蛇矛】效果,请输入“100”,以回车结束!\n");
            (*w2).Kanshoupai();
            scanf("%d", &x);
            if (x == -1)
            {
                int i;
                ((*w2).tili)--;
                printf("电脑对玩家造成1点伤害!\n");
                i = Binsi(w1, w2, qipaidui, qipaishu);
                return i;
                break;
            }
            else if (((*w2).zhuangbei[0].leixing == 305) && x == 100)
            {
                pai p = Zhangba(w2, qipaidui, qipaishu);
                p.paifu = -1;
                printf("使用!\n");
                return 0;
                break;
            }
            else if ((*w2).shoupai[x].leixing == 101)
            {
                printf("玩家打出");
                ((*w2).shoupai)[x].Kanpai();
                qipaidui[*qipaishu] = ((*w2).shoupai)[x];
                for (i = x + 1; i <= ((*w2).shoupaishu); i++)((*w2).shoupai)[i - 1] = ((*w2).shoupai)[i];
                ((*w2).shoupaishu)--;
                (*qipaishu)++;
                return 0;
                break;
            }
            else printf("你确定你打出的是【杀】?\n");
        }
    }
}
int Wanjian(wujiang* w1, wujiang* w2, pai paidui[104], int* paiduishu, pai qipaidui[104], int* qipaishu)
{
    int i;
    i = Shan(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
    if (i == -1)
    {
        i = Binsi(w1, w2, qipaidui, qipaishu);
        return i;
    }
    else return 0;
}
int Chupai(pai paidui[104], pai qipaidui[104], int* paiduishu, int* qipaishu, wujiang* w1, wujiang* w2, pai yuanshipaidui[2][4][13])
{
    pai p1;
    int sha = 1; int y = -1, i, t = ((*w1).shoupaishu) - 1;
    for (;; t--)
    {
 
        if ((*w1).juese)
        {
            printf("\n电脑当前手牌数:%d\n", ((*w2).shoupaishu));
            (*w2).Kanzhuangbei();
            (*w1).Kanshoupai();
            (*w1).Kanzhuangbei();
        }
        int j = 0;
        if ((*w1).juese && ((*w1).zhuangbei[0].leixing == 305))printf("如果想发动【丈八蛇矛】效果,请输入“100”,以回车结束!\n");
        y = Xuanpai(w1, t);
        p1 = Panpai(w1, &sha, y, qipaidui, qipaishu);
        if ((p1).leixing == -1)break;
        else if ((p1).leixing == 0)continue;
        else
        {
            int duixiang;
            duixiang = Mubiao(p1, w1, w2, &sha);
            if (duixiang == -2)continue;
            else
            {
                Da1pai(w1, w2, qipaidui, qipaishu, y);
                Miaoshu(p1, ((*w1).juese), duixiang);
                if (!((*w1).juese))
                {
                    printf("\n电脑当前手牌数:%d\n", ((*w1).shoupaishu));
                    (*w1).Kanzhuangbei();
                    (*w2).Kanshoupai();
                    (*w2).Kanzhuangbei();
                }
                switch (p1.leixing)
                {
                case 101:
                    i = Sha(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
                    if (i == -1) { return -1; break; }
                    if ((*w1).juese)printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w1).tili, (*w1).tilishangxian, (*w2).tili, (*w2).tilishangxian);
                    else printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w2).tili, (*w2).tilishangxian, (*w1).tili, (*w1).tilishangxian);
                    break;
                case 103:
                    Tao(w1);
                    break;
                case 201:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))Chai(w1, w2, qipaidui, qipaishu);
                    else;
                    if ((*w1).juese)(*w1).Kanshoupai();
                    break;
                case 202:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))Qian(w1, w2);
                    else;
                    if ((*w1).juese)(*w1).Kanshoupai();
                    break;
                case 203:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))Wuzhong(w1, paidui, paiduishu, qipaidui, qipaishu);
                    else;
                    break;
                case 204:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))
                    {
                        i = Juedou(w1, w2, qipaidui, qipaishu);
                        if (i == -1)return -1;
                        if ((*w1).juese)printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w1).tili, (*w1).tilishangxian, (*w2).tili, (*w2).tilishangxian);
                        else printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w2).tili, (*w2).tilishangxian, (*w1).tili, (*w1).tilishangxian);
                    }
                    break;
                case 205:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))
                    {
                        i = Jiedao(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
                        if (i == -1)return -1;
                        if ((*w1).juese)printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w1).tili, (*w1).tilishangxian, (*w2).tili, (*w2).tilishangxian);
                        else printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w2).tili, (*w2).tilishangxian, (*w1).tili, (*w1).tilishangxian);
                    }
                    break;
                case 206:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))Taoyuan(w1);
                    j = 0;
                    for (;;)
                    {
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))Taoyuan(w2);
                    break;
                case 207:
                    pai wugu[10];
                    for (i = 1; i <= 10; i++)wugu[i - 1].leixing = -1;
                    Kaipai(paidui, paiduishu, 2, wugu);
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))Qupai(wugu, w1);
                    for (;;)
                    {
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))Qupai(wugu, w2);
                    Rengpai(wugu, qipaidui, qipaishu); printf("弃牌数:%d\n", *qipaishu);
                    break;
                case 208:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))
                    {
                        i = Nanman(w1, w2, qipaidui, qipaishu);
                        if (i == -1)return -1;
                        if ((*w1).juese)printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w1).tili, (*w1).tilishangxian, (*w2).tili, (*w2).tilishangxian);
                        else printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w2).tili, (*w2).tilishangxian, (*w1).tili, (*w1).tilishangxian);
                    }
                    break;
                case 209:
                    for (;;)
                    {
                        i = Wuxie(&p1, w1, w2, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                        i = Wuxie(&p1, w2, w1, qipaidui, qipaishu, 0);
                        if (!i)break;
                        j++;
                    }
                    if (!(j % 2))
                    {
                        i = Wanjian(w1, w2, paidui, paiduishu, qipaidui, qipaishu);
                        if (i == -1)return -1;
                        if ((*w1).juese)printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w1).tili, (*w1).tilishangxian, (*w2).tili, (*w2).tilishangxian);
                        else printf("玩家当前体力值:%d/%d\n电脑当前体力值:%d/%d\n", (*w2).tili, (*w2).tilishangxian, (*w1).tili, (*w1).tilishangxian);
                    }
                    break;
                case 361:
                case 362:
                case 363:
                    ((*w1).juli[0])--; break;
                case 381:
                case 382:
                case 383:
                    ((*w2).juli[0])++; break;
                default:break;
                }
                printf("\n");
            }
        }
    }
    return 0;
}
void Qipai(pai shoupai[20], int* shoupaishu, pai qipaidui[104], int* qipaishu, int juese, int* shoupaishangxian)
{
    int x;
    if ((*shoupaishu) > (*shoupaishangxian))
    {
        if (juese != 1 && juese != 0)printf("身份参数错误!");
        int q = (*shoupaishu) - (*shoupaishangxian);
        int i, j;
        for (j = 1; j <= q; j++)
        {
            for (;;)
            {
                if (juese)
                {
                    printf("弃牌请输入手牌之前的编号,以回车结束!\n注:一次只能弃一张牌\n");
                    printf("手牌数:%d\n", *shoupaishu);
                    scanf("%d", &x);
                    if (x >= 0 && x < (*shoupaishu))break;
                    else printf("你弃掉了一张空气!\n");
                }
                else
                {
                    srand((unsigned)time(NULL));
                    x = rand() % (*shoupaishu);
                    break;
                }
            }
            qipaidui[*qipaishu] = shoupai[x];
            for (i = x + 1; i <= (*shoupaishu); i++)shoupai[i - 1] = shoupai[i];
            (*shoupaishu)--;
            if (juese)printf("弃牌阶段玩家弃置");
            else printf("弃牌阶段电脑弃置");
            qipaidui[*qipaishu].Kanpai();
            (*qipaishu)++;
            int m;
            if (juese)
            {
                printf("玩家当前手牌:\n");
                for (m = 0; m <= (*shoupaishu - 1); m++)
                {
                    printf("%d ", m);
                    (shoupai[m]).Kanpai();
                }
            } printf("弃牌堆:%d\n", *qipaishu);
        }
    }
}
int Huihe(pai A[104], pai B[104], int* x, int* y, pai yuanshipaidui[2][4][13], wujiang* w1, wujiang* w2)
{
    printf("\n回合开始阶段……\n");
    switch ((*w1).huihekaishi)
    {
    case 0:break;
    default:printf("回合开始阶段参数错误!\n"); break;
    }
    printf("判定阶段……\n");
    int K = 0;
    if ((*w1).pandingshu > 0)
    {
        int i, j;
        for (; (*w1).pandingshu;)
        {
            switch ((*w1).pandingpai[0].leixing)
            {
            case 251:printf("【乐不思蜀】开始判定……\n"); break;
            case 252:printf("【闪电】开始判定……\n"); break;
            default:printf("【??】开始判定……\n"); break;
            }
            j = 0;
            pai p = ((*w1).pandingpai[0]);
            for (;;)//在判定之前询问【无懈】
            {
                i = Wuxie(&p, w2, w1, B, y, 0);
                if (!i)break;
                j++;
                i = Wuxie(&p, w1, w2, B, y, 0);
                if (!i)break;
                j++;
            }
            switch ((*w1).pandingpai[0].leixing)
            {
            case 251:
                if (!(j % 2))
                {
                    printf("【乐不思蜀】的判定牌是:");
                    Panding(A, x, B, y);
                    if ((B[(*y) - 1].huase) != 1)
                    {
                        printf("【乐不思蜀】判定成功!\n");
                        if ((*w1).juese)printf("玩家");
                        else printf("电脑");
                        printf("跳过出牌阶段!\n");
                        K = -1;
                    }
                    else printf("【乐不思蜀】判定失败!\n");
                }
                B[*y] = (*w1).pandingpai[0];
                ((*w1).pandingshu)--;
                (*w1).pandingpai[0] = (*w1).pandingpai[1];
                (*w1).pandingpai[1] = (*w1).pandingpai[2];
                (*w1).pandingpai[2].leixing = -1;
                (*y)++;
                break;
            case 252:
                if (!(j % 2))
                {
                    printf("【闪电】的判定牌是:");
                    Panding(A, x, B, y);
                    if ((B[(*y) - 1].huase == 0) && (B[(*y) - 1].dianshu >= 1) && (B[(*y) - 1].dianshu <= 8))
                    {
                        printf("【闪电】判定成功!\n");
                        if ((*w1).juese)printf("玩家");
                        else printf("电脑");
                        printf("受到3点雷电伤害!");
                        ((*w1).tili) = ((*w1).tili) - 3;
                        i = Binsi(w2, w1, B, y);
                        B[*y] = (*w1).pandingpai[0];
                        ((*w1).pandingshu)--;
                        (*w1).pandingpai[0] = (*w1).pandingpai[1];
                        (*w1).pandingpai[1] = (*w1).pandingpai[2];
                        (*w1).pandingpai[2].leixing = -1;
                        (*y)++;
                        if (i == -1)return -1;
                    }
                    else
                    {
                        printf("【闪电】判定失败!\n");
                        (*w2).pandingpai[2] = (*w2).pandingpai[1];
                        (*w2).pandingpai[1] = (*w2).pandingpai[0];
                        (*w2).pandingpai[0] = (*w1).pandingpai[0];
                        (*w1).pandingpai[0] = (*w1).pandingpai[1];
                        (*w1).pandingpai[1] = (*w1).pandingpai[2];
                        (*w1).pandingpai[2].leixing = -1;
                        ((*w1).pandingshu)--;
                        ((*w2).pandingshu)++;
                    }
                    break;
                }
            default:printf("判定牌错误!");
            } printf("弃牌数:%d\n", *y);
        }
    }
    else if (!((*w1).pandingshu));
    else printf("判定阶段参数错误!\n");
    printf("摸牌阶段……\n");
    switch ((*w1).mopai)
    {
    case 0:Mopai(&((*w1).shoupaishu), (*w1).shoupai, A, x, B, y, (*w1).juese); break;
    case -1:break;
    default:printf("摸牌阶段参数错误!\n"); break;
    }
    if (K == -1)goto M;
    printf("出牌阶段……\n");
    switch ((*w1).chupai)
    {
    case 0:
    {
        int i;
        i = Chupai(A, B, x, y, w1, w2, yuanshipaidui);
        if (i == -1)
        {
            return -1;
            break;
        }
        else break;
    }
    case -1:break;
    default:printf("出牌阶段参数错误!\n"); break;
    }
M:
    printf("弃牌阶段……\n");
    switch ((*w1).qipai)
    {
    case 0:
        Qipai((*w1).shoupai, &((*w1).shoupaishu), B, y, (*w1).juese, &((*w1).tili)); break;
    default:printf("弃牌阶段参数错误!\n"); break;
    }
    printf("回合结束阶段……\n");
    switch ((*w1).huihejieshu)
    {
    case 0:break;
    default:printf("回合结束阶段参数错误!\n"); break;
    }
    return 0;
}
int main()
{
    void Kanshoupai(pai p);
    pai yuanshipaidui[2][4][13], qipaidui[104], paidui[104];
    wujiang wanjia, com;
    com.tili = wanjia.tili = 5;
    com.tilishangxian = wanjia.tilishangxian = 5;
    com.huihekaishi = wanjia.huihekaishi = 0;
    com.panding = wanjia.panding = 0;
    com.mopai = wanjia.mopai = 0;
    com.chupai = wanjia.chupai = 0;
    com.qipai = wanjia.qipai = 0;
    com.huihejieshu = wanjia.huihejieshu = 0;
    com.shoupaishu = wanjia.shoupaishu = 0;
    com.pandingshu = wanjia.pandingshu = 0;
    com.zhuangbeishu = wanjia.zhuangbeishu = 0;
    com.juese = 0; wanjia.juese = 1;
    pai p;
    p.leixing = -1;
    com.zhuangbei[0] = com.zhuangbei[1] = com.zhuangbei[2] = com.zhuangbei[3] = wanjia.zhuangbei[0] = wanjia.zhuangbei[1] = wanjia.zhuangbei[2] = wanjia.zhuangbei[3] = p;
    com.zhuangbei[0].changdu = wanjia.zhuangbei[0].changdu = 1;
    com.pandingpai[0] = com.pandingpai[1] = com.pandingpai[2] = wanjia.pandingpai[0] = wanjia.pandingpai[1] = wanjia.pandingpai[2] = p;
    com.juli[0] = wanjia.juli[0] = 1;
    int a, b, c;
    for (a = 0; a <= 1; a++)
    {
        for (b = 0; b <= 3; b++)
        {
            for (c = 0; c <= 12; c++)
            {
                yuanshipaidui[a][b][c].paifu = a;
                yuanshipaidui[a][b][c].huase = b;
                yuanshipaidui[a][b][c].dianshu = c;
            }
        }
    }
    yuanshipaidui[0][0][0].leixing = 204;
    yuanshipaidui[0][0][1].leixing = 331;
    yuanshipaidui[0][0][2].leixing = 201;
    yuanshipaidui[0][0][3].leixing = 201;
    yuanshipaidui[0][0][4].leixing = 304; yuanshipaidui[0][0][4].changdu = 3;
    yuanshipaidui[0][0][5].leixing = 251;
    yuanshipaidui[0][0][6].leixing = 101;
    yuanshipaidui[0][0][7].leixing = 101;
    yuanshipaidui[0][0][8].leixing = 101;
    yuanshipaidui[0][0][9].leixing = 101;
    yuanshipaidui[0][0][10].leixing = 202;
    yuanshipaidui[0][0][11].leixing = 201;
    yuanshipaidui[0][0][12].leixing = 208;
    yuanshipaidui[0][1][0].leixing = 209;
    yuanshipaidui[0][1][1].leixing = 102;
    yuanshipaidui[0][1][2].leixing = 103;
    yuanshipaidui[0][1][3].leixing = 103;
    yuanshipaidui[0][1][4].leixing = 308; yuanshipaidui[0][1][4].changdu = 5;
    yuanshipaidui[0][1][5].leixing = 103;
    yuanshipaidui[0][1][6].leixing = 103;
    yuanshipaidui[0][1][7].leixing = 103;
    yuanshipaidui[0][1][8].leixing = 103;
    yuanshipaidui[0][1][9].leixing = 101;
    yuanshipaidui[0][1][10].leixing = 101;
    yuanshipaidui[0][1][11].leixing = 103;
    yuanshipaidui[0][1][12].leixing = 102;
    yuanshipaidui[0][2][0].leixing = 204;
    yuanshipaidui[0][2][1].leixing = 101;
    yuanshipaidui[0][2][2].leixing = 101;
    yuanshipaidui[0][2][3].leixing = 101;
    yuanshipaidui[0][2][4].leixing = 101;
    yuanshipaidui[0][2][5].leixing = 101;
    yuanshipaidui[0][2][6].leixing = 101;
    yuanshipaidui[0][2][7].leixing = 101;
    yuanshipaidui[0][2][8].leixing = 101;
    yuanshipaidui[0][2][9].leixing = 101;
    yuanshipaidui[0][2][10].leixing = 101;
    yuanshipaidui[0][2][11].leixing = 205;
    yuanshipaidui[0][2][12].leixing = 205;
    yuanshipaidui[0][3][0].leixing = 204;
    yuanshipaidui[0][3][1].leixing = 102;
    yuanshipaidui[0][3][2].leixing = 102;
    yuanshipaidui[0][3][3].leixing = 102;
    yuanshipaidui[0][3][4].leixing = 102;
    yuanshipaidui[0][3][5].leixing = 101;
    yuanshipaidui[0][3][6].leixing = 101;
    yuanshipaidui[0][3][7].leixing = 101;
    yuanshipaidui[0][3][8].leixing = 101;
    yuanshipaidui[0][3][9].leixing = 101;
    yuanshipaidui[0][3][10].leixing = 102;
    yuanshipaidui[0][3][11].leixing = 103;
    yuanshipaidui[0][3][12].leixing = 101;
    yuanshipaidui[1][0][0].leixing = 252;
    yuanshipaidui[1][0][1].leixing = 302; yuanshipaidui[1][0][1].changdu = 2;
    yuanshipaidui[1][0][2].leixing = 202;
    yuanshipaidui[1][0][3].leixing = 202;
    yuanshipaidui[1][0][4].leixing = 383;
    yuanshipaidui[1][0][5].leixing = 303; yuanshipaidui[1][0][5].changdu = 2;
    yuanshipaidui[1][0][6].leixing = 208;
    yuanshipaidui[1][0][7].leixing = 101;
    yuanshipaidui[1][0][8].leixing = 101;
    yuanshipaidui[1][0][9].leixing = 101;
    yuanshipaidui[1][0][10].leixing = 210;
    yuanshipaidui[1][0][11].leixing = 305; yuanshipaidui[1][0][11].changdu = 3;
    yuanshipaidui[1][0][12].leixing = 362;
    yuanshipaidui[1][1][0].leixing = 206;
    yuanshipaidui[1][1][1].leixing = 102;
    yuanshipaidui[1][1][2].leixing = 207;
    yuanshipaidui[1][1][3].leixing = 207;
    yuanshipaidui[1][1][4].leixing = 361;
    yuanshipaidui[1][1][5].leixing = 251;
    yuanshipaidui[1][1][6].leixing = 203;
    yuanshipaidui[1][1][7].leixing = 203;
    yuanshipaidui[1][1][8].leixing = 203;
    yuanshipaidui[1][1][9].leixing = 101;
    yuanshipaidui[1][1][10].leixing = 203;
    yuanshipaidui[1][1][11].leixing = 201;
    yuanshipaidui[1][1][12].leixing = 381;
    yuanshipaidui[1][2][0].leixing = 301; yuanshipaidui[1][2][0].changdu = 1;
    yuanshipaidui[1][2][1].leixing = 331;
    yuanshipaidui[1][2][2].leixing = 201;
    yuanshipaidui[1][2][3].leixing = 201;
    yuanshipaidui[1][2][4].leixing = 382;
    yuanshipaidui[1][2][5].leixing = 251;
    yuanshipaidui[1][2][6].leixing = 208;
    yuanshipaidui[1][2][7].leixing = 101;
    yuanshipaidui[1][2][8].leixing = 101;
    yuanshipaidui[1][2][9].leixing = 101;
    yuanshipaidui[1][2][10].leixing = 101;
    yuanshipaidui[1][2][11].leixing = 210;
    yuanshipaidui[1][2][12].leixing = 210;
    yuanshipaidui[1][3][0].leixing = 301; yuanshipaidui[1][3][0].changdu = 1;
    yuanshipaidui[1][3][1].leixing = 102;
    yuanshipaidui[1][3][2].leixing = 202;
    yuanshipaidui[1][3][3].leixing = 202;
    yuanshipaidui[1][3][4].leixing = 306; yuanshipaidui[1][3][4].changdu = 3;
    yuanshipaidui[1][3][5].leixing = 102;
    yuanshipaidui[1][3][6].leixing = 102;
    yuanshipaidui[1][3][7].leixing = 102;
    yuanshipaidui[1][3][8].leixing = 102;
    yuanshipaidui[1][3][9].leixing = 102;
    yuanshipaidui[1][3][10].leixing = 102;
    yuanshipaidui[1][3][11].leixing = 307; yuanshipaidui[1][3][11].changdu = 4;
    yuanshipaidui[1][3][12].leixing = 363;
    int paiduishu = 104;
    int qipaishu = 0;
    printf("游戏开始!\n");
    Qishixipai(yuanshipaidui, paidui);
    Qishishoupai(&wanjia, paidui, &(paiduishu), qipaidui, &(qipaishu));
    Qishishoupai(&com, paidui, &(paiduishu), qipaidui, &(qipaishu));
    int i;
    for (;;)
    {
        i = Huihe(paidui, qipaidui, &paiduishu, &qipaishu, yuanshipaidui, &wanjia, &com);
        if (i == -1)break;
        i = Huihe(paidui, qipaidui, &paiduishu, &qipaishu, yuanshipaidui, &com, &wanjia);
        if (i == -1)break;
    }
}

17、三体星战

#include<bits/stdc++.h>
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
int toint(double a){return ((int)(a*10+5))/10;}
int rand(int a){return rand()%a;}
void SlowDisplay(int x,char *p){while(1){if(*p!=0) printf("%c",*p++);else break;Sleep(x);}}
void Setpos(double x,double y){COORD pos;pos.X=toint(y*2),pos.Y=toint(x);SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);}
void Color(int a){
    if(a==-1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE);
    if(a==-2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
    if(a==-3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED);

    if(a==0) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
    if(a==1) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_RED);
    if(a==2) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_RED);
    if(a==3) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_RED|BACKGROUND_GREEN);
    if(a==4) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY|BACKGROUND_RED|BACKGROUND_GREEN|BACKGROUND_BLUE);

    if(a==5) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_RED|BACKGROUND_BLUE);
    if(a==6) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_BLUE);
}   
struct node{int what;double x,y,vx,vy,r,m;bool life;int gun,master=-1;}Sun[1000001];
int b,T,m[41][41],n[41][41],m2[41][41],n2[41][41],dif[11],Speed=10,Ba,Hotguntime,Hotguntimemax=10,Blood,Score;
double Speedmax,Speedless,Speedmore=1,Balljump=-0.7,Fire=0.08;
void Push(int a,int b){
    if(Sun[a].master==b||Sun[b].master==a) return;
    if(Sun[a].life==0||Sun[b].life==0) return;
    if(Sun[a].what==3||Sun[b].what==3) return;
    if(Sun[a].what==4||Sun[b].what==4) return;
    double Ax=Sun[a].x-Sun[b].x,Ay=Sun[a].y-Sun[b].y,Dis=sqrt(Ax*Ax+Ay*Ay)*1.0,fDis=sqrt((Sun[a].vx-Sun[b].vx)*(Sun[a].vx-Sun[b].vx)+(Sun[a].vy-Sun[b].vy)*(Sun[a].vy-Sun[b].vy));
    if(Dis==0) return;if(abs(Ay)<=0.0001) Ay=0.0001;
    if(Sun[a].what==2||Sun[b].what==2) int c;
    else if(Dis<=Sun[a].r+Sun[b].r+fDis){
        double Vx=(Sun[a].vx+Sun[b].vx)/2.0,Vy=(Sun[a].vy+Sun[b].vy)/2.0,aX=(Sun[a].x+Sun[b].x+Sun[a].vx+Sun[b].vx)/2.0,aY=(Sun[a].y+Sun[b].y+Sun[a].vy+Sun[b].vy)/2.0;
        Sun[a].vx=Sun[b].vx=Vx,Sun[a].vy=Sun[b].vy=Vy;Sun[a].x=aX-(Ax/Dis)/2.0,Sun[b].x=aX+(Ax/Dis)/2.0;Sun[a].y=aY-(Ay/Dis)/2.0,Sun[b].y=aY+(Ay/Dis)/2.0;
        return;
    }
    double ac=Sun[a].m*Sun[b].m/(Dis*Dis)*1.0,afx=0,afy=0,d=abs(Ax/Ay*1.0);
    afy=sqrt(ac/(1+d*d))*1.0,afx=sqrt(ac/(1+d*d))*d*1.0;
    if(Ax>0) afx*=-1;if(Ay>0) afy*=-1;
#define A Sun[a].vx+=afx/Sun[a].m*Speedless,Sun[a].vx=max(-Speedmax,min(Speedmax,Sun[a].vx)),Sun[a].vy+=afy/Sun[a].m*Speedless,Sun[a].vy=max(-Speedmax,min(Speedmax,Sun[a].vy))
#define B Sun[b].vx-=afx/Sun[b].m*Speedless,Sun[b].vx=max(-Speedmax,min(Speedmax,Sun[b].vx)),Sun[b].vy-=afy/Sun[b].m*Speedless,Sun[b].vy=max(-Speedmax,min(Speedmax,Sun[b].vy))
    Speedmax=0.1,Speedless=0.01; 
    if(Sun[a].what==2&&Sun[b].what==2) Speedmax=3.0;
    if(Sun[a].what==0) {Speedless=0.008;Speedmax=1.0; A;}
    else if(Sun[a].what==1) {A; if(Sun[b].what==1) B;}
    else if(Sun[a].what==2) {Speedless=0.8;B;if(Sun[b].what==2) A;}
    else {A;B;}
}
int Painting[41][41]={{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,4,9,9,9,9,9,9,9,9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},};
void Paint(int a);
void Move(int a){
    Blood=10000000;
    memset(m,0,sizeof(m));
    memset(m2,0,sizeof(m2));
    #define ix toint(Sun[i].x/1.0)
    #define iy toint(Sun[i].y/1.0)
    #define jx toint(Sun[j].x/1.0)
    #define jy toint(Sun[j].y/1.0)
    if(Sun[0].life==1){
    Sun[0].x+=Sun[0].vx/Speedmore;Sun[0].y+=Sun[0].vy/Speedmore;
    if(Sun[0].x>40) Sun[0].x=40,Sun[0].vx=0;if(Sun[0].x<0) Sun[0].x=0,Sun[0].vx=0;if(Sun[0].y>40) Sun[0].y=40,Sun[0].vy=0;if(Sun[0].y<0) Sun[0].y=0,Sun[0].vy=0;}

    for(int i=0;i<=b;i++) for(int j=i+1;j<=b;j++) Push(i,j);
    for(int i=0;i<=b;i++) for(int j=0;j<=b;j++)
    {
        if(i==j||Sun[i].life==0||Sun[j].life==0) continue;
    if(Sun[i].what==4&&(Sun[j].what>=100&&Sun[j].what<200)) {if(abs(ix-jx)<1&&abs(iy-jy)<1) Ba--,Sun[i].life=Sun[j].life=0,Score+=10;}

        if(Sun[i].what==203&&Sun[i].master!=j&&Sun[j].what<200) if(abs(ix-jx)<2&&abs(iy-jy)<2) Sun[j].vx-=Sun[i].vx/10.0,Sun[j].vy-=Sun[i].vy/10.0,Sun[i].life=0;
        if(Sun[i].what==204&&Sun[i].master!=j&&Sun[j].what<200) if(abs(ix-jx)<2&&abs(iy-jy)<2) Sun[j].vx+=Sun[i].vx/10.0,Sun[j].vy+=Sun[i].vy/10.0,Sun[i].life=0;

    }
    int i=0;
    if(m[ix][iy]>0&&m[ix][iy]<100)
    {
        if(m[ix][iy]<=1) Blood-=1;
        else if(m[ix][iy]<=4) Blood-=2;
        else if(m[ix][iy]<=10) Blood-=3;
        else if(m[ix][iy]>10&&m[ix][iy]<100) Blood-=4;
    }
    for(int i=1;i<=b;i++){
        if(Sun[i].life==0) continue;
        Sun[i].x+=Sun[i].vx/Speedmore;Sun[i].y+=Sun[i].vy/Speedmore;
        Balljump=-0.7;
        if(Sun[i].what==3) Balljump=-1;
        if(Sun[i].what==4) Balljump=-1;
        if(Sun[i].x>40) Sun[i].x=40,Sun[i].vx*=Balljump;
        if(Sun[i].x<0) Sun[i].x=0,Sun[i].vx*=Balljump;if(Sun[i].y>40) Sun[i].y=40,Sun[i].vy*=Balljump;if(Sun[i].y<0) Sun[i].y=0,Sun[i].vy*=Balljump;
        if(Sun[i].what==1) {m[ix][iy]+=2;int R;R=rand(3);if(R==0&&ix<40) m[ix+1][iy]++;R=rand(3);if(R==0&&ix>0) m[ix-1][iy]++;R=rand(3);if(R==0&&iy<40) m[ix][iy+1]++;R=rand(3);if(R==0&&iy>0) m[ix][iy-1]++;}
        if(Sun[i].what==2) {m[ix][iy]+=2;if(ix<40) m[ix+1][iy]+=10;if(ix>0) m[ix-1][iy]+=10;if(iy<40) m[ix][iy+1]+=10;if(iy>0) m[ix][iy-1]+=10;if(ix<40&&iy<40) m[ix+1][iy+1]+=4;if(ix<40&&iy>0) m[ix+1][iy-1]+=4;if(ix>0&&iy<40) m[ix-1][iy+1]+=4;if(ix>0&&iy>0) m[ix-1][iy-1]+=4;m[ix][iy]=10086;} 
        if(Sun[i].what==3) {if(abs(ix-Sun[0].x)<1&&abs(iy-Sun[0].y)<1) Ba--,Sun[i].life=0;else m2[ix][iy]=2;}
        if(Sun[i].what==4) {m2[ix][iy]=2;}
        if(Sun[i].what>=100&&Sun[i].what<300)
        {
            if(Sun[i].x==0||Sun[i].y==0||Sun[i].x==40||Sun[i].y==40||(abs(Sun[i].vx)<=0.5&&abs(Sun[i].vy)<=0.5)) Sun[i].life=0;
            if(Sun[i].what==203||Sun[i].what==204) {m[ix][iy]=Sun[i].what;if(ix<40) m[ix+1][iy]=Sun[i].what;if(ix>0) m[ix-1][iy]=Sun[i].what;if(iy<40) m[ix][iy+1]=Sun[i].what;if(iy>0) m[ix][iy-1]=Sun[i].what;}
            else m2[ix][iy]=Sun[i].what;
        } 
    }
    if(Sun[0].life==1) m2[toint(Sun[0].x/1.0)][toint(Sun[0].y/1.0)]=1;
    Paint(a);
}
void Paint(int a){
for(int i=0;i<=40;i++) for(int j=0;j<=40;j++){
    if(a==0&&Painting[i][j]!=0) continue;

    if(m2[i][j]!=n2[i][j]){n2[i][j]=m2[i][j];n[i][j]=0;Setpos(i,j);
    if(m2[i][j]==0) Color(0),cout<<"  ";
    else if(m2[i][j]==1) Color(-1),cout<<"●";
    else if(m2[i][j]==2) Color(-3),cout<<"◎";
    else if(m2[i][j]==101) Color(-1),cout<<"☉";
    else if(m2[i][j]==102) Color(3),cout<<"  ";
    continue;}
    if(m[i][j]!=n[i][j]){n[i][j]=m[i][j];n2[i][j]=0;Setpos(i,j);
    if(m[i][j]>=10086) Color(4),cout<<"●";
    else if(m[i][j]==203) Color(5),cout<<"  ";
    else if(m[i][j]==204) Color(6),cout<<"  ";
    else if(m[i][j]==0) Color(0),cout<<"  ";else if(m[i][j]<=1) Color(1),cout<<"  ";else if(m[i][j]<=4) Color(2),cout<<"  ";else if(m[i][j]<=10) Color(3),cout<<"  ";else if(m[i][j]>10&&m[i][j]<100) Color(4),cout<<"  ";
    else Color(0),cout<<"?!";}Color(0);
    }
}
void RandStart(int a) {for(int i=1;i<=a;i++) {b++;Sun[b].x=rand(41),Sun[b].y=rand(41);Sun[b].vx=(rand(41)-20)/10.0,Sun[b].vy=(rand(41)-20)/10.0,Sun[b].m=1,Sun[b].r=1,Sun[b].life=1,Sun[b].what=1;}}
void CornerStart(int a) {for(int i=1;i<=a;i++) {b++;int k=rand(4);if(k==0||k==2) Sun[b].x=rand(41);else Sun[b].y=rand(41);if(k==0) Sun[b].y=0;if(k==1) Sun[b].x=0;if(k==2) Sun[b].y=40;if(k==3) Sun[b].x=40;Sun[b].vx=(rand(41)-20)/10.0,Sun[b].vy=(rand(41)-20)/10.0,Sun[b].m=1,Sun[b].r=1,Sun[b].life=1,Sun[b].what=1;}}
void SunStart(int x,int y,int r,int vx,int vy) {
b++;Sun[b].x=x,Sun[b].y=y;Sun[b].vx=vx,Sun[b].vy=vy,Sun[b].m=1000,Sun[b].r=1,Sun[b].life=1,Sun[b].what=2;
for(int i=x-r;i<=x+r;i++) for(int j=y-r;j<=y+r;j++){b++;Sun[b].x=i,Sun[b].y=j;Sun[b].vx=(rand(41)-20)/100.0+vx,Sun[b].vy=(rand(41)-20)/100.0+vy,Sun[b].m=1,Sun[b].r=1,Sun[b].life=1,Sun[b].what=1;}
for(float i=(int)(x-r/2)-0.5;i<=(int)(x+r/2)+0.5;i++) for(float j=(int)(y-r/2)-0.5;j<=(int)(y+r/2)+0.5;j++){b++;Sun[b].x=i,Sun[b].y=j;Sun[b].vx=(rand(41)-20)/100.0+vx,Sun[b].vy=(rand(41)-20)/100.0+vy,Sun[b].m=1,Sun[b].r=1,Sun[b].life=1,Sun[b].what=1;}
}
void Shoot(int a,bool q)
{
    double Sunavx=Sun[a].vx,Sunavy=Sun[a].vy;
    if(Sun[a].vx==0&&Sun[a].vy==0) Sunavx=-1;if(Sun[a].vy==0) Sunavy=0.001;
    if(Sun[a].gun>=1&&Sun[a].gun<=4)
    {
        b++;Sun[b].x=Sun[a].x,Sun[b].y=Sun[a].y;double ac;
        if(Sun[a].gun==1) ac=3.0; 
        if(Sun[a].gun>=2&&Sun[a].gun<=4) ac=7.0;
        double d=abs(Sunavx/Sunavy*1.0);Sun[b].vy=sqrt(ac/(1+d*d))*1.0,Sun[b].vx=sqrt(ac/(1+d*d))*d*1.0;
        if(Sunavx>0) Sun[b].vx*=-1;if(Sunavy>0) Sun[b].vy*=-1;if(q==1) Sun[b].vx*=-1,Sun[b].vy*=-1;Sun[b].life=1;
        Sun[b].master=a;
        int bb=b;
        if(Sun[a].gun==1||Sun[a].gun==2) Sun[b].what=100+Sun[a].gun,Sun[b].m=1;
        if(Sun[a].gun==3||Sun[a].gun==4) Sun[b].what=200+Sun[a].gun,Sun[b].m=1;
        if(Sun[a].gun>=2&&Sun[a].gun<=4){
    double kx=Sun[bb].x,ky=Sun[bb].y;
    for(int j=1;j<=7;j++)
    {
    kx-=Sun[bb].vx/3.5,ky-=Sun[bb].vy/3.5;
    if(kx<0||ky<0||kx>40||ky>40) continue;
    b++,Sun[b].x=kx,Sun[b].y=ky,Sun[b].vx=Sun[bb].vx,Sun[b].vy=Sun[bb].vy,Sun[b].what=Sun[bb].what,Sun[b].master=a,Sun[b].life=1;
    }
        }
    }
}
void Start(){
    for(int i=0;i<=40;i++) for(int j=0;j<=40;j++){if(Painting[i][j]==1) Setpos(i,j),Color(-2),cout<<"■";if(Painting[i][j]==2) Setpos(i,j),Color(-2),cout<<"作者:蒟蒻一枚";if(Painting[i][j]==3) Setpos(i,j),Color(-2),cout<<"按 y 开始游戏!";if(Painting[i][j]==4) Setpos(i,j),Color(-2),cout<<"不要搞错成拼音输入法!";if(Painting[i][j]==5) Setpos(i,j),Color(-2),cout<<"Three-Body STAR WARs!";}
    for(int i=1;i<=3;i++) SunStart(rand(31)+5,rand(31)+5,5,(rand(101)-50)/10.0,(rand(101)-50)/10.0);
    T=0;
    while(1){
        T++;
        if(T%50==0) CornerStart(1);
        if(kbhit()){char g=_getch();if(g=='y') break; }
        Move(0);
        Sleep(Speed);
    }
    Color(0);system("cls");
    Setpos(10,10);SlowDisplay(30,"你想要教程吗?(y/n)");
    char g=_getch();if(g!='y') return;Setpos(10,10);SlowDisplay(30,"那我们开始。。。   ");Sleep(500);
    system("cls");
    Setpos(30,10);system("cls");

    memset(Sun,0,sizeof(Sun));memset(m,0,sizeof(m));memset(m2,0,sizeof(m2));
    Sun[0].x=Sun[0].y=20;Sun[0].life=1;Sun[0].m=10;
    T=0;
    int step=0;
    while(1){
        T++;
        if(T==2)
        {
        Setpos(10,10),SlowDisplay(30,"这是你的飞船,你可以用↑↓←→键来操纵它。");Sleep(500);
        Setpos(12,10),SlowDisplay(30,"在宇宙航行没有阻力,也就是说你的惯性会主导一切。");Sleep(500);
        Setpos(14,10),SlowDisplay(30,"当你撞到边界时,你的速度会减为零。");Sleep(1000); 
        Setpos(16,10),SlowDisplay(30,"试试看。");
        }
        if(T==200)
        {
        Setpos(10,10),SlowDisplay(30,"在宇宙航行时有两个小技巧:                ");
        Setpos(12,10),SlowDisplay(30,"1、不要太快。                                   ");
        Setpos(14,10),SlowDisplay(30,"2、有时转向比调头更有用。         ");Sleep(1000);
        Setpos(16,10),SlowDisplay(30,"接下来我们稍稍提高点难度!请到达所有靶位点!");Sleep(500);
        b++;Sun[b].x=rand(40),Sun[b].y=rand(40);Sun[b].vx=(rand(101)-50)/30.0,Sun[b].vy=(rand(101)-50)/30.0,Sun[b].life=1,Sun[b].what=3;Ba++;
        Move(1);Sleep(1000); 
        }
        if(Ba>0) Setpos(1,1),cout<<"剩余靶位点:"<<Ba<<' ';
        if(step>=1) Setpos(5,1),cout<<"Cooling time: "<<Hotguntime<<"    ";
        if(T>200&&Ba==0&&step==0) T=201,step=1,Setpos(1,1),cout<<"           ";
        if(T>300&&Ba==0&&step==1) T=201,step=2,Setpos(1,1),cout<<"           ";
        if(T==202&&step==1)
        {
        Setpos(10,10),SlowDisplay(30,"做的好!看来是时候给你装备初始武器了。");
        Setpos(12,10),SlowDisplay(50,"。。。 星际电磁轨道炮 已装备。");
        Setpos(14,10),SlowDisplay(30,"按下w/s发射子弹!                         ");
        Sun[0].gun=1;Hotguntime=0;
        }
        if(T==300&&step==1)
        {
        Setpos(16,10),SlowDisplay(30,"来吧!请击毁所有靶位点!");Sleep(500);
        b++;Sun[b].x=rand(40),Sun[b].y=rand(40);Sun[b].vx=(rand(101)-50)/30.0,Sun[b].vy=(rand(101)-50)/30.0,Sun[b].life=1,Sun[b].what=4;Ba++;
        Move(1);Sleep(1000); Ba=1;
        }
        if(T==202&&step==2)
        {
        Setpos(10,10),SlowDisplay(30,"太阳什么的你也看到过了。               ");
        Setpos(12,10),SlowDisplay(30,"其旁缠绕着的火会扣你的血。      ");
        Setpos(14,10),SlowDisplay(30,"打靶位点可以积10分,发射子弹-1分,分数达到20通关,简单吧!");Sleep(1000); 
        Setpos(16,10),SlowDisplay(60,"让 我 们  开 始  吧!!!");Sleep(1000); 
        system("cls");return; 
        }
        double v=sqrt(Sun[0].vx*Sun[0].vx+Sun[0].vy*Sun[0].vy);
        if(GetAsyncKeyState(VK_UP)&0x8000) {if(Sun[0].vx>=0) Sun[0].vx-=2*Fire;else if(v<4) Sun[0].vx-=Fire;}
        else if(GetAsyncKeyState(VK_DOWN)&0x8000) {if(Sun[0].vx<=0) Sun[0].vx+=2*Fire;else if(v<4) Sun[0].vx+=Fire;}
        if(GetAsyncKeyState(VK_LEFT)&0x8000) {if(Sun[0].vy>=0) Sun[0].vy-=2*Fire;else if(v<4) Sun[0].vy-=Fire;}
        else if(GetAsyncKeyState(VK_RIGHT)&0x8000) {if(Sun[0].vy<=0) Sun[0].vy+=2*Fire;else if(v<4) Sun[0].vy+=Fire;}

        if(Hotguntime>0) Hotguntime--;
        if(kbhit()){
        char g=_getch();
        if(Hotguntime==0&&g=='s')
        {
            if(abs(Sun[0].vx)>=0.01) Sun[0].vx*=0.7;
            if(abs(Sun[0].vy)>=0.01) Sun[0].vy*=0.7;
            Shoot(0,0);
            Hotguntime=Hotguntimemax;
        }
        if(Hotguntime==0&&g=='w')
        {
            if(abs(Sun[0].vx)<=2) Sun[0].vx*=1.2;
            if(abs(Sun[0].vy)<=2) Sun[0].vy*=1.2;
            Shoot(0,1);
            Hotguntime=Hotguntimemax;
        }
        }
        Move(1);
        Sleep(Speed);
    }
}
int main()
{
    system("mode con cols=82 lines=43");
    CONSOLE_CURSOR_INFO cursor_info={1,0};
    SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
    srand((unsigned)time(NULL));
    Y:
    Start();
    memset(Sun,0,sizeof(Sun));memset(m,0,sizeof(m));memset(m2,0,sizeof(m2));
    YY:system("cls");
    Setpos(10,10),SlowDisplay(30,"选难度吧,几个太阳?(0~10,回车确定)");
    int i=10;while(dif[i]!=1&&i>=0){i--;}
    Setpos(12,10);
    if(i==-1) printf("推荐难度:0个太阳。");
    else if(i<10) printf("加油,推荐难度:%d个太阳。",i+1);
    else if(i==10) printf("你通关了!随便选吧!",i);

    Setpos(15,10);
    int p;cin>>p;
    if(p<0||p>10) {SlowDisplay(150,"输入错误!"),Sleep(1000);goto YY;}
    for(int i=1;i<=p;i++) SunStart(rand(31)+5,rand(31)+5,5,(rand(101)-50)/10.0,(rand(101)-50)/10.0);
    Sun[0].x=Sun[0].y=5;Sun[0].vx=0.1;Sun[0].life=1;Sun[0].m=10;
    T=0;
    Sun[0].gun=1;
    Blood=100;
    Score=0;Ba=0;
    for(int i=1;i<=10;i++) {b++;Sun[b].x=rand(40),Sun[b].y=rand(40);Sun[b].vx=(rand(101)-50)/30.0,Sun[b].vy=(rand(101)-50)/30.0,Sun[b].life=1,Sun[b].what=4;Ba++;}
    while(Blood>0&&Score<100){
        Setpos(1,1),cout<<"Blood: "<<Blood<<"    ";
        Setpos(3,1),cout<<"Score: "<<Score<<"    ";
        Setpos(5,1),cout<<"Cooling time: "<<Hotguntime<<"    ";
        T++;
        if(T==1) Sleep(1000);
        if(T%50==0) CornerStart(1);
        if(T%30==0&&Ba<5) {b++;Sun[b].x=rand(40),Sun[b].y=rand(40);Sun[b].vx=(rand(101)-50)/30.0,Sun[b].vy=(rand(101)-50)/30.0,Sun[b].life=1,Sun[b].what=4;Ba++;}
        if(T%40==0&&Blood<100) Blood++;

        double v=sqrt(Sun[0].vx*Sun[0].vx+Sun[0].vy*Sun[0].vy);
        if(GetAsyncKeyState(VK_UP)&0x8000) {if(Sun[0].vx>=0) Sun[0].vx-=2*Fire;else if(v<4) Sun[0].vx-=Fire;}
        else if(GetAsyncKeyState(VK_DOWN)&0x8000) {if(Sun[0].vx<=0) Sun[0].vx+=2*Fire;else if(v<4) Sun[0].vx+=Fire;}
        if(GetAsyncKeyState(VK_LEFT)&0x8000) {if(Sun[0].vy>=0) Sun[0].vy-=2*Fire;else if(v<4) Sun[0].vy-=Fire;}
        else if(GetAsyncKeyState(VK_RIGHT)&0x8000) {if(Sun[0].vy<=0) Sun[0].vy+=2*Fire;else if(v<4) Sun[0].vy+=Fire;}

        if(Hotguntime>0) Hotguntime--;
        if(kbhit()){
        char g=_getch();
        if(Hotguntime==0&&g=='s')
        {
            if(abs(Sun[0].vx)>=0.01) Sun[0].vx*=0.7;
            if(abs(Sun[0].vy)>=0.01) Sun[0].vy*=0.7;
            Shoot(0,0);
            Score=max(Score-1,0);
            Hotguntime=Hotguntimemax;
        }
        if(Hotguntime==0&&g=='w')
        {
            if(abs(Sun[0].vx)<=2) Sun[0].vx*=1.2;
            if(abs(Sun[0].vy)<=2) Sun[0].vy*=1.2;
            Shoot(0,1);
            Score=max(Score-1,0);
            Hotguntime=Hotguntimemax;
        }
        }Move(1);
        Sleep(Speed);
    }
    system("cls");
    if(Score<20) Setpos(10,10),SlowDisplay(150,"Sorry,你死了。"); 
    else Setpos(10,10),SlowDisplay(10,"赢了!快去挑战下一个难度吧!"),dif[p]=1; 
    Sleep(1000); 
    goto Y;
    return 0;
}

18、丧尸危机

#include<bits/stdc++.h>
#include<windows.h>
#include<time.h>
#include<conio.h>
using namespace std;
int mzhg,zd,swhm,qxs,swx,sn,mp,tongguan,sw1,zd1,sn1,mz1,mp1,zbbj,ccg,mzzd,mz,tongguan1,sw,x,s,cdd,jg,qiang,gun,by,vv,gjj[100],hjj[100],zjj[100];
void Read()
{
    ifstream in("丧尸危机存档.in");
    in>>mzhg>>zd>>swhm>>qxs>>swx>>sn>>mp>>tongguan>>sw1>>zd1>>sn1>>mz1>>mp1>>zbbj>>ccg>>mzzd>>mz>>tongguan1>>sw>>x>>s>>cdd>>jg>>qiang>>gun>>by>>vv;
    for(int i=0;i<=99;i++) in>>gjj[i];
    for(int i=0;i<=99;i++) in>>hjj[i];
    for(int i=0;i<=99;i++) in>>zjj[i];
    in.close();
}
void Save()
{
    ofstream out("丧尸危机存档.in");
    out<<mzhg<<' '<<zd<<' '<<swhm<<' '<<qxs <<' '<<swx<<' '<<sn<<' '<<mp<<' '<<tongguan<<' '<<sw1<<' '<<zd1<<' '<<sn1<<' '<<mz1<<' '<<mp1<<' '<<zbbj<<' '<<ccg<<' '<<mzzd<<' '<<mz<<' '<<tongguan1<<' '<<sw<<' '<<x<<' '<<s<<' '<<cdd<<' '<<jg<<' '<<qiang<<' '<<gun<<' '<<by<<' '<<vv<<'\n';
    for(int i=0;i<=99;i++) out<<' '<<gjj[i];out<<'\n';
    for(int i=0;i<=99;i++) out<<' '<<hjj[i];out<<'\n';
    for(int i=0;i<=99;i++) out<<' '<<zjj[i];out<<'\n';
    out.close();
}
void Slowsay(string a) {int l=a.size();for(int i=0;i<l;i++){cout<<a[i];if(vv==0) Sleep(20);}printf("\n");if(vv==1) Sleep(100);}
int read()
{
    char ch=_getch();
    while(ch>'9'||ch<'0') ch=_getch();
    return ch-48;
}
void qp()
{
    system("cls");if(swx==2) Slowsay("王,"),zd=99999,sw=99999;
    Slowsay("当前你的状态是\n");
    printf("子弹 %d,食物 %d\n",zd,sw);
}
int esl()
{
    system("cls");
    char ch;
    Slowsay("你,饿死了。\n");
    if(vv==0) ch=_getch();
    hjj[1]=1;
    Slowsay("Bad End  1\n");
    ch=_getch();
    s++;
    return 0;
}
int mzd()
{
    hjj[2]=1;
    system("cls");
    char ch;
    Slowsay("你,被丧尸咬死了。\n");
    if(vv==0) ch=_getch();
    Slowsay("Bad End   2\n");
    ch=_getch();
    s++;
    return 0;
}
int hd1()
{
    system("cls");
    Slowsay("在某一天,你家门口响起了敲门声,你打开门,外面的发现让你欣喜若狂\n");
    Slowsay("政府的救援部队已经消灭了这个城市的丧尸,\n他们在这个城市的各个角落搜索着可能存在的幸存者.\n");
    Slowsay("Happy End-----苟到最后\n");Sleep(1000);gjj[1]=1;
    return 0;
}
int hd2()
{
    system("cls");
    int sw;
    char ch;
    Slowsay("在与妹子相处的这些时间里,你与她相爱了\n");
    Slowsay("你们的生活是那样的幸福\n");
    Slowsay("直到有一天......\n");
    Slowsay("基地首领希望你去执行一个任务,你选择\n");
    Slowsay("1.独自一人前往\n");
    Slowsay("2.和妹子一起去\n");
    while(true)
    {
        int x;
        x=read();
        if(x<1||x>2)
        {
            Slowsay("请重新输入\n");
            continue;
        }
        if(x==1)
        {
            Slowsay("当你完成任务回来的时候,发现——\n");
            Slowsay("基地被丧尸攻破了\n");
            Slowsay("这个基地的所有人都被丧尸杀了,一个人都没跑出来\n");
            hjj[4]=1;
            Slowsay("Bad End    4");
            s++;
        }
        if(x==2)
        {
            Slowsay("当你和妹子完成任务回来时,\n");
            Slowsay("基地已经变成一片废墟了\n");
            Slowsay("你和妹子没有办法,只能到处流浪\n");
            Slowsay("不过,两个人总比一个人要好\n");
            gjj[2]=1;
            Slowsay("Happy End------神仙眷侣"); 
        }
        break;
    }    Sleep(1000); 
    return 0;
}
int hd3()
{
    system("cls");
    char ch;
    Slowsay("你就这样平静的生活在这个基地里\n");
    Slowsay("直到某一天,大量的丧尸进攻了这里\n");
    if(zd>9)
    {
        Slowsay("每个人都在尽自己的努力去守卫基地\n");
        Slowsay("每个人都做到了自己能做到的\n");
        Slowsay("最后,奇迹出现了\n");
        Slowsay("大家成功守住了基地\n");
        Slowsay("而你,也因为在守卫过程中立下大功成为了这个基地的英雄\n");
        Slowsay("顺便说一句,到死了你也没女朋友\n");
        gjj[3]=1;
        Slowsay("Happy End-----英雄不朽");
        return 0;
    }
    Slowsay("丧尸的数量实在太多了,\n");
    Slowsay("尽管基地的大家都在尽全力防守\n");
    Slowsay("可基地还是被攻破了\n");
    Slowsay("而你,也死在了这里\n");
    s++;
    hjj[5]=1;
    Slowsay("Bad End     5"); Sleep(1000); 
}
int hd4()
{
    system("cls");
    Slowsay("在于少年相处的这些时间里");
    Slowsay("你尽力地保护着他");
    Slowsay("而他也常常给你带来惊喜");
    Slowsay("慢慢的,你开始认清你自己");
    Slowsay("你是个gay");
    Slowsay("于是,你就和少年性福快乐的生活在了一起");
    Slowsay("Happy End-----认清自己");
    gjj[4]=1;  Sleep(1000); 
}
int td()
{
    system("cls");
    char ch;
    Slowsay("那箱饼干与你的枪一起发出了强光\n");
    Slowsay("紧接着,他们融为了一体\n");
    Slowsay("当光芒散去时,整个世界都发生了变化\n");
    Slowsay("所有的丧尸都变回了人类\n");
    Slowsay("伟大的勇士!丧尸危机终于解除了!!接下来,是普天同庆的大狂欢!!!\n");
    Slowsay("True End-----拯救世界\n");Sleep(1000); 
    Slowsay("???????????????????????????????????");
    Slowsay("......这是怎么回事......");
    Slowsay("......为什么......");
    Slowsay("......不是普通的......");
    Slowsay("......从何而来......");Sleep(1000); 
    Slowsay("。 。 。 。 。 。是谁。 。 。 。 。 。");
    Slowsay("你陷入沉思。");
    if(zjj[1]!=1)
    {
        Slowsay("获得线索-----奇特的枪与饼干");
    }
    zjj[1]=1; Sleep(1000); 
}
int td2()
{
    system("cls");
    char ch;
    Slowsay("你的变异已经开始了");
    Slowsay("你开始疯狂的进食,直到把自己的胃撑破");
    Slowsay("然后,就眼前一黑失去意识");
    Slowsay("再次醒来时,你已经是一个丧尸了");
    Slowsay("奇怪的是,你还保留着自己的意识");
    Slowsay("你感觉到自己的力气变得更大,速度变得更快");
    Slowsay("或许变成丧尸也不错————你这样想着");
    Slowsay("True End-----认清!·本我"); 
    if(zjj[2]!=1)
    {
        Sleep(2000);
        Slowsay("获得线索-----延迟变异!·少年");
    }
    zjj[2]=1; Sleep(1000); 
}
int bd8()
{
    Slowsay("坐在椅子上的是一个15岁左右的少年");
    Slowsay("正在你因为他的年龄而惊讶时");
    Slowsay("少年却站了起来,看向了你身后的妹子");
    Slowsay("“差不多了吧”,妹子这样说道");
    Slowsay("“可以了”,这是少年的回答");
    Slowsay("然后,你就感到脖子一阵剧痛");Sleep(1000);
    Slowsay("在你失去意识前,妹子一直没有松口。");
    s++;
    Slowsay("Bad End     8");
    if(hjj[8]==0)
    {
        Sleep(2000);
        Slowsay("获得线索-----早已变异!·妹子");
    }
    hjj[8]=1;  Sleep(1000); 
}
int td3()
{
    system("cls");
    Slowsay("你和妹子冲出了丧尸的围杀,");
    Slowsay("可是当你们来到那个幸存者基地时");
    Slowsay("却发现那个基地有一些不对");
    Slowsay("所有人都死气沉沉的");
    Slowsay("你们直接走向了首领的房间");Sleep(1000);
    if(zjj[2]==1&&zjj[3]==1) 
    {   
        bd8();
        return 0;
    }
    Slowsay("换完子弹的你想离开");
    Slowsay("就在你快要离开的时候,妹子抓住了你的手");
    Slowsay("“我喜欢你,别走”,她这样说");
    Slowsay("于是,你留了下来");
    Slowsay("你们的生活是那样的幸福"); 
    Slowsay("直到有一天......");Sleep(1000);
    Slowsay("基地首领希望你去执行一个任务,\n");
    Slowsay("在执行任务的过程中");
    Slowsay("妹子曾被丧尸咬到过一口");
    Slowsay("她以为你没有发现");
    Slowsay("而你却在远处看到了这一幕");
    Slowsay("奇怪的是,她却并没有变异\n");
    Slowsay("那一刹那你突然想起,");
    Slowsay("你们的房间里,总是弥漫着一股血腥的味道......");Sleep(1000);
    Slowsay("Happy End------神仙眷侣");Sleep(1000);
    Slowsay("???????????????????????????????????");
    Slowsay("True End------认清?·妹子");
    if(zjj[3]==0)
    {
        Sleep(2000);
        Slowsay("获得线索-----不变异?·妹子"); 
    }
    zjj[3]=1;Sleep(1000);
}
int td4()
{
    system("cls");
    Slowsay("当丧尸危机爆发时,你正呆在家里\n");
    char ch=_getch();
    if(vv==0) ch=_getch();
        system("cls");
        Slowsay("当丧*#******丧尸危机*$*&*^&*机爆发时,**你正呆***&*爆发******#在家里**\n");Sleep(1000);
    	Slowsay("***检*#******测到*不**丧尸危**88机*$匹*$**机爆发时,**配***#在家里****\n");Sleep(2000);
    	Slowsay("L当****#OG****I危机*$N**E机爆***(RR*8%#404)**发时,**你O*****#在家R里!\n");Sleep(2000);
        system("cls");
    if(vv==0) ch=_getch();
    Slowsay("有什么不对劲");
    Slowsay("你这样想着");
    Slowsay("过去了好多天,\n你还是一个人都没有遇到,\n除了丧尸就是丧尸");
    Slowsay("为什么他们......不见了?");
    Slowsay("\n");
    Slowsay("True End------验证失败");
    zjj[4]=1;
    if(zbbj==0)
        Slowsay("进阶线索-----乱码,废弃与失联"),zbbj=1;Sleep(1000);
}
int td5()
{
    system("cls");
    Slowsay("当少年死去后,整个世界好像变得不同了");
    Slowsay("所有的活人在一瞬间消失");
    Slowsay("所有的丧尸当场去世"); 
    Slowsay("你的眼前只剩下了黑暗");
    Slowsay("不知道过去了多久,你死了");
    Slowsay("Bad End......");Sleep(1000);
    Slowsay("不,还没有结束");
    Slowsay("虽然好像和往常死去之后的感觉一样");
    Slowsay("但是。。。好像。。。");Sleep(1000);
    Slowsay("有延迟?。。。");
    Slowsay("。。。在这段时间里,你的思考一直没停。。。");
    Slowsay("True End-----死亡姗姗来迟");
    s++;
    if(zjj[5]==0)
        Slowsay("进阶线索-----少年之死");
    zjj[5]=1;   Sleep(1000); 
}
int tg3()
{
    Slowsay("当你再次睁开眼时");
    Slowsay("你发现自己躺在一个营养仓内");
    Slowsay("你无比的确认这就是真实的世界");
    Slowsay("脑中的一切开始明晰起来");
    Slowsay("你认为自己知道了一切的真相");
    Slowsay("去杀光人类吧!!!!");
    Slowsay("你这样想着");
    Slowsay("在身着白大褂的丧尸们的欢呼声中");
    Slowsay("你打碎了玻璃,跑出了营养仓");
    Slowsay("来到了外面这个被战争破坏得满目疮痍的世界");
    Slowsay("战火硝烟,炮声隆隆");
    Slowsay("你熟练的发出嘶吼,呼唤着周围的丧尸");
    Slowsay("你指挥着他们,毁掉了一个又一个人类的基地"); 
    Slowsay("最后,在这场世纪战争中,丧尸们艰难地取得了胜利"); 
    Slowsay("作为它们的英雄,你自豪的统治着世界。"); 
    Slowsay("虽然,其实,在那些你不知道的地方");
    Slowsay("一个个一样的营养仓中,装着一个个一样的你。");
    Slowsay("---------------游戏终极剧情通关-------------");
    tongguan1=2; Save(); Sleep(1000);
}
int tg2()
{
    Slowsay("当你再次睁开眼时");
    Slowsay("你发现自己躺在一个营养仓内");
    Slowsay("你无比的确认这就是真实的世界");
    Slowsay("可是你却发现自己没法操纵身体");
    Slowsay("隔着玻璃,一个黑色的身影正在操作着");
    Slowsay("你清晰的看见那个人的大脑裸露出来,与你的接在一起");
    Slowsay("这时,又有一大波记忆涌入脑海。");
    Slowsay("“少年与妹子......是以“成功者”“英雄”“神话传说”为原型创造的人物......”");
    Slowsay("“游戏中的情节与场景......取材于现实世界真实案例......”");
    Slowsay("再往后,你的脑中一片混乱。");
    Slowsay("“...舍弃.........熟练..我....智慧..学习........获得.....”");
    Slowsay("“.....种族...探索.......杀...进化.........帮助..需要.....”");
    Slowsay("“...成熟....兵器.....无敌..下风.......战争...伟大.....英雄.....”");
    Slowsay("激昂的声音一直回荡着。");
    Slowsay("---------------游戏进阶剧情通关-------------"); 
    tongguan1=1; Sleep(1000); 
}
int td6()
{
    Slowsay("一天以后,少年回来了");
    Slowsay("一起回来的还有妹子");
    Slowsay("“找到了......”");
    Slowsay("少年的手中拿着一个破损的铭牌");
    Slowsay("铭牌上的字迹很诡异,但写着熟悉的内容:");
    Slowsay("【22-08-03...】");
    Slowsay("“你的......”");
    Slowsay("妹子神色复杂的看了你一眼");
    Slowsay("“我们是一类人......”");
    Slowsay("“现在,让我把你带出去吧。”");
    if(qxs==1&&swx==0)
    {
        tg2();
        return 0;
    }
    else
    {
        Slowsay("一股强烈的撕扯感出现到了你身上");
        if(swx==1) Slowsay("此时的你,是如此渴望着死亡与结局\n你大笑着张开双臂,迎接了死亡。");
        else Slowsay("此时的你并不能接受如此巨大的伤害"),Slowsay("你死了。");
        Slowsay("Bad End      14");
        if(hjj[14]==0)
            Slowsay("进阶线索-----外面的世界");
        hjj[14]=1;
        s++; 
    }Sleep(1000); 
} 

int bd6()
{
    system("cls");
    Slowsay("你感觉到自己正在变异,");
    Slowsay("意识开始逐渐模糊起来");
    Slowsay("你的肚子正无比渴望着食物,你啃噬着触及的一切!");
    Slowsay("但是不够,你的身躯饿得干枯,你甚至开始食用自己的躯体!");
    Slowsay("接着,你眼前一黑,再也没有醒来......");
    s++;
    hjj[6]=1;
    Slowsay("Bad End      6");Sleep(1000); 
} 

int bd3()
{
    system("cls");
    char ch;
    Slowsay("长久的等待终于让你失去了理智,你疯了。\n");
    Slowsay("Bad End   3\n");
    hjj[3]=1;Sleep(1000); 
    if(mp==-1)
    {
        Slowsay("当政府的救援队打开你家的门时,你嘶吼着扑了上去");
        if(zd>0)
            Slowsay("他们试图将你击毙,却被你提前一枪击倒");
        else
        {
            Slowsay("你被他们击毙了");
            Slowsay("Bad End       12");
            s++;
            hjj[12]=1;
            return 0; 
        }
        Slowsay("你如同一个熟练的猎手,狩猎着救援队");
        Slowsay("当他们全部死去后,你开始享用起你的大餐");
        Slowsay("Bad End           13");
        if(by==0)
            Sleep(2000),Slowsay("进阶线索-----早已变异!·本我"),by=1;
        hjj[13]=1;
        return 0; 
    }
    s++;
}
int bd7()
{
    s++;
    system("cls");
    Slowsay("你,被狗咬死了");
    Slowsay("Bad End      7");
    hjj[7]=1;Sleep(1000); 
}

int bd15()
{s++;
    Slowsay("你发现这笔迹有些不对");
    Slowsay("就好像是新写上去的一样");
    Slowsay("认字迹的话,好像还十分熟悉");  Sleep(1000);  
    Slowsay("正当你想的入迷的时候,你的脖子被咬住了");
    Slowsay("在死前,你隐约听到了少年的声音,“Again.”");
    Slowsay("Bad End     15");
    if(hjj[15]==0)
    {
        Sleep(2000);
        Slowsay("进阶线索-----伪造......");   
    } 
    hjj[15]=1; Sleep(1000); 
}
int tgg3()
{
    system("cls");
    Slowsay("你杀掉了少年,并吃掉了他的尸体");
    Slowsay("世界开始崩塌");
    tg3(); Sleep(1000); 
}
int bd9()
{
    s++;
    system("cls");
    Slowsay("诡异的是,当你杀光了跟来的丧尸后,发现地下室里并没有丧尸");
    Slowsay("这里有的,只是一个穿着白大褂的尸体");
    Slowsay("在尸体的衣服口袋中,你找到了一个笔记本");
    Slowsay("****(无法辨认)1号****进展*****永生**");
    Slowsay("今********,*号诞生了,他比其*****更*");
    Slowsay("有些不对,*****的发育*****太快***");
    Slowsay("2号的**被***出有*****强感染性*****");
    Slowsay("**********************************");
    Slowsay("***瓶颈,或许我们**应该****活体样本");
    Slowsay("**,**样本*****失去活性,*****但**在动\n");
    if(mp==-1)
    {
        bd15();
        return 0;
    } 
    Slowsay("正当你看的入迷的时候,你的脖子被咬住了");
    Slowsay("在死前,你隐约听到了少年的声音,“Again.”");
    Slowsay("Bad End     9");
    if(hjj[9]==0)
    {
        Sleep(2000);
        Slowsay("获得线索-----实验体·1号和2号");   
    } 
    hjj[9]=1;Sleep(1000); 
} 

int tg()
{
    system("cls");
    Slowsay("不知为何,当你走到这里时,感到世界在一瞬间发生了变化");
    Slowsay("你不知道这个变化发生在那里,你只知道,现在的世界十分违和");
    Slowsay("或许,这个世界不是真实的");
    Slowsay("当你的脑中出现了这个的时候,你眼前的世界,蹦塌了");
    Slowsay("于此同时,大量记忆冲进了你的脑海");
    Slowsay("不,它们只是回来了,这本身就是你的记忆");
    Slowsay("他们在一开始被一些虚假的记忆所替换");
    Slowsay("从记忆中,你得知你此时正在玩一个vr游戏");
    Slowsay("少年与妹子则是游戏的npc");
    Slowsay("这款游戏号称有着超强的代入感");
    Slowsay("你在发售当天就买来玩了");
    Slowsay("“这游戏真是了不起啊”,你这样想着,“再玩一次吧”");
    Slowsay("...是啊,没错,这一切只是游戏,游戏。............");Sleep(1000); 
    Slowsay("躺在仓中的你,自始至终,都没有睁开眼。");
    Slowsay("---------------游戏基础剧情通关-------------"); 
    cdd=0;
    tongguan=1;Sleep(1000); 
}
int cg()
{
    system("cls");
    Slowsay("你感觉到违和感在不断加深");
    Slowsay("世界好像不再是真实的");
    Slowsay("你现在脑中只有一种想法\n");Sleep(1000); 
    Slowsay("活下去!越久越好!!!"); Sleep(1000); 
}
int cg2()
{
    system("cls");
    system("Color C");
    Slowsay("违和感在此时已经聚集到了顶峰\n");
    Slowsay("你的脑中想清楚了一切\n");
    Slowsay("1.那么,下一步是  杀光他们\n");
    Slowsay("2.那么,下一步是  团结起来\n");
    x=read();
    if(x==1)
        Slowsay("已立起尸王线flag,接下来,去打通全 15 badend!"),swx=1,qxs=1; 
    else
        Slowsay("“看来你还是没懂啊......”背后传来冷冷的声音\n\n“ A  G  A  I  N   . ”"); 
    system("Color F");Sleep(1000); 
}
int Swx()
{
    system("cls");
    Slowsay("哈。。。哈。。。哈。。。。。。");
    Slowsay("我。。。已经完成了。。。");
    Slowsay("所有的死法。。。我都体验了一遍了。。。");
    Slowsay("我。。。一直是只丧尸吧。。。");
    Slowsay("无论被打倒多少次。。。我都会站起来继续。。。");
    Slowsay("只要是我想通的结局。。。我便一定会通掉它。。。");
    Slowsay("只要是我想杀的人。。。我便一定会杀死他。。。");
    Slowsay("只要是我想知道的真相。。。我便一定会知晓它。");
    Slowsay("我。。。已经不是以前的那个懦弱无能的我了。。。");
    Slowsay("这一轮。。。我。。。要成为王!!!\n");
    Slowsay("在实验室中,为首者发出低哑的嘶吼:");
    Slowsay("所有人员一级戒备!实验,进入最后阶段!!");
    Slowsay("------------终极剧情-尸王线开启!------------");cdd=0;
}
int bd10()
{
    system("cls");
    Slowsay("你发现了另一个基地");
    Slowsay("弹尽粮绝的你选择加入了他们");
    Slowsay("之后的每一天都十分单调");
    Slowsay("外出寻找物资,然后天黑了回家睡觉");
    Slowsay("应该是这样吗?");
    Slowsay("也许吧");
    Slowsay("Bad End     10");
    hjj[10]=1; Sleep(1000); 
}
int hd5()
{
    Slowsay("没关系的,一切都会过去的");
    Slowsay("你这样说的");
    Slowsay("他似乎感觉到了你的善意,一点一点向你靠近");
    Slowsay("你紧紧的抱住了他");
    Slowsay("我会保护好你的"); Sleep(1000); 
    Slowsay("Happy End-----跨越物种的gay~");  Sleep(1000); 
}
int sswj()
{
Save();
    system("cls");
    int w=0;
    mp=0;
    if(tongguan==1&&zjj[4]==0)
    {
        Slowsay("检测到你已通关,是否领取特殊物品\n");
        Slowsay("1.领取");
        Slowsay("2.不领取");
        while(true)
        {
            x=read();
            if(x==1)    
                mp=-1; 
            if(x==2)
            {
                td4();
                return 0;
            }
            break;
        }
    }
    else if(tongguan==1)
    {
        Slowsay("检测到你已通关,已领取特殊物品\n");mp=-1;
    }
    char ch;
    if(cdd==1)
    {
        Slowsay("是否读取存档\n");
        Slowsay("1.读取\n");
        Slowsay("2.不读取\n");
        x=read();
        if(x==1)
        {
            sw=sw1;
            zd=zd1;
            sn=sn1;
            mz=mz1;
            mp=mp1;
            goto cddd1;
        }
    }
    system("cls");
    Slowsay("当丧尸危机爆发时,你正呆在家里\n");if(vv==0) ch=_getch();
    Slowsay("你有10点物资可以分配到子弹和食物上"); 
    if(swx==2) Slowsay("...\n\n但是!不!我已经不会再惧怕食物短缺与丧尸小兵了!\n\n我,应当是世界的王!!\n"),zd=99999,sw=99999;
    else{if(vv==0) ch=_getch();
    int x,y;
    qiang=0;gun=0;zd=0;sw=0;mz=0;mzzd=0;sn=0;mzhg=0;
    Slowsay("\n请输入你的选择(此次输入需键入回车,例:5 5 )\n");
    while(true)
    {
        scanf("%d%d",&x,&y);
        zd=x;sw=y;
        if(x+y!=10||x<0||y<0)
        {
            if(x==666666&&y==5201314)
            {
                Slowsay("启用秘籍\n");
                Slowsay("请输入你真正需要的子弹数和食物数(上限:999 )\n");
        scanf("%d%d",&x,&y);
        zd=min(x,999);sw=min(y,999);
                break;
            }
            Slowsay("请重新输入\n");
            w++;
            if(w>5)
            {
                SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_GREEN);
                Slowsay("行了行了,这只是第一个选择而已\n"), 
                Slowsay("有必要这么皮吗\n"),
                Slowsay("自动分配食物3个子弹7个\n");
                if(vv==0) ch=_getch();
                sw=3,zd=7; 
                break;
            }
        }
        else break;
    }
    }
    Slowsay("你的家里是个较为安全的地方,你可以选择搜索你家的物资或是去邻居家看看\n");
    if(vv==0) ch=_getch();
    Slowsay("1.留在家中\n");
    Slowsay("2.前往邻居家\n"); 
    while(true)
    {
        x=read();
        if(x!=1&&x!=2)
            Slowsay("请重新输入\n");
        else
            if(x==1)
            {if(swx==2) {Slowsay("饿啊!为什么我还呆在家里!!");break;}
            else {
                Slowsay("在二楼,你发现了一些食物食物+3\n");
                if(vv==0) ch=_getch();
                Slowsay("在家里过了一夜,食物-1\n");
                sw=sw+2;
                break;
            }}
            else
            {if(swx==2) {Slowsay("可恶!为什么邻居家里没有人!!");break;}
            else {
                Slowsay("在前往邻居家的路上,你遇到了丧尸\n");
                if(vv==0) ch=_getch(); 
                if(zd<1) 
                {
                    Slowsay("你朝他开了一枪,不过枪里没有子弹,你被他咬死了\n");
                    if(vv==0) ch=_getch(); 
                    hjj[11]=1;
                    Slowsay("Bad End      11\n");
                    s++;
                    if(vv==0) ch=_getch();
                    Slowsay("另外在说一句,一个子弹都不带,还到处乱浪,你是真的作");
                    return 0;
                }
                else
                {
                    Slowsay("你用你手中的枪结束了他的生命,子弹-1\n");
                    zd=zd-1;
                    if(vv==0) ch=_getch();
                    Slowsay("邻居家里不知为何并没有人,你在仔细搜索后发现了一个弹夹,里面有4发子弹\n");
                    zd+=4;
                    if(vv==0) ch=_getch();
                    Slowsay("在邻居家过了一夜后,食物-2\n");
                    sw=sw-2;
                    if(sw<0)
                    {
                        esl();
                        return 0; 
                    } 
                }
                break;
            }}
    }
    if(vv==0) ch=_getch();
    qp();
    Slowsay("你回想起这附近有一座商场,你决定\n");
    if(vv==0) ch=_getch();
    Slowsay("1.前往商场\n");
    Slowsay("2.到处乱走\n");
    Slowsay("3.留在屋子里\n");
    while(true)
    {
        x=read();
        if(x!=1&&x!=2&&x!=3)
        {
            Slowsay("请重新输入\n");
            continue;
        }
        if(swx==2&&x==1) {system("cls"),Slowsay("你循着残存的记忆前往商场,找到了适合你膨胀体型的衣服,可以继续隐藏下去。\n\n"),mz=1;break;}
        else if(swx==2&&x==2) {system("cls"),Slowsay("你到处乱走,见人即杀,丧尸与人类的血混合着溅满了街道,\n惨叫连连,火光接天,如同末世一般。\n你站在尸山上狂笑,不屑于看那些渺小的灵魂。\n\n然而,你丝毫没有注意,一个娇小的身影远远的看到了你,捂着嘴逃之夭夭。\n\n"),mz=10086;break;}
        else if(swx==2&&x==3) {system("cls");Slowsay("你如一名老练的猎手忍耐着饥饿,终于等来了敲门声。\n你得意洋洋的屠杀着这送上门来的大餐\n并跟踪着逃兵进入了幸存者基地。\n那一天,残阳似血,为浸染大地的红再镶上一道道金光。\n\n");Sleep(1000);return 0;} 
        else if(x==3)
        {
            if(sw<2) 
            {
                esl();
                return 0;
            }
            Slowsay("无聊正在逐渐消磨你的意志,但你还是坚持了下来。食物-2\n");
            sw=sw-2;
            if(vv==0) ch=_getch();
            Slowsay("之后的每一天你都是这样,独自一人在家中等待救援\n");
            if(vv==0) ch=_getch();
            Slowsay("在过了好久之后\n");cout<<mp; 
            if(sw<6)
            {
                esl();
                return 0;
            }
            x=rand()%2;
            if(x==1&&mp==0) {hd1();return 0; }
            else {bd3();return 0;}
        }
        else if(x==2)
        {       
            int xx=rand()%3;
            if(xx!=0)
            {
                Slowsay("在到处乱走的过程中,你遇到了来自世界各地的丧尸,子弹-2\n");
                if(zd<2)
                {
                    mzd();
                    return 0;
                }
                zd=zd-2;
            }
            else
            {
                Slowsay("在到处乱走的过程中,你走入了一处曾为战场的废墟\n");
                if(vv==0) ch=_getch();
                Slowsay("你循着硝烟味,终于找到了军队残留的弹药箱,子弹+6\n");
                zd+=6;
            }
            break;
        }
        else if(x==1)
        {
            if(zd<4)
            {
                mzd();
                return 0;
            }
            Slowsay("在前往商场的过程中,你遇到了丧尸,子弹-4\n");
            zd=zd-4;
            if(vv==0) ch=_getch();
            Slowsay("你在商场发现了食物与子弹,食物+3,子弹+2\n"); 
            sw=sw+3;zd=zd+2;
            break;
        }
    }
    if(mz!=10086)
    {Slowsay("你在回家的路上发现了一个女幸存者\n");
    if(vv==0) ch=_getch();
    Slowsay("她试图向你讨要食物,你的选择是\n");
    Slowsay("1.不给\n");
    Slowsay("2.给她2份食物\n");
    Slowsay("3.给她2份子弹\n");
    Slowsay("4.给她一枪\n");
    while(true)
    {
        x=read();
        if(x<1||x>4)
        {
            Slowsay("请重新输入。\n");
            continue;   
        }   
        if(x==1)
        {
            Slowsay("妹子生气的走了。\n");
            if(vv==0) ch=_getch();
        }
        if(x==2)
        {
            if(sw<2)
            {
                Slowsay("食物不足\n");
                continue;
            }
            sw=sw-2;
            mzhg++;
            Slowsay("你的食物-2,妹子好感度+1\n");
            if(vv==0) ch=_getch();
        }
        if(x==3)
        {
            if(zd<2)
            {
                Slowsay("子弹不足\n");
                continue;
            }
            mzzd=1;
            Slowsay("你给了妹子两份子弹,妹子离开了\n"),zd=zd-2;
            if(vv==0) ch=_getch();
        }
        if(x==4)
        {
            if(zd<1)
            {
                Slowsay("子弹不足\n");
                continue;
            }
            zd=zd-1;
            Slowsay("你一枪杀死了妹子,并从她的尸体上找到了4份食物\n");
            sw=sw+4;
            mzhg=-1;
            if(swx==2) Slowsay("你吃掉了妹子的尸体,真是人间佳肴!\n"),mzhg=-10086;
        }
        if(swx==2&&x!=4) Slowsay("你看着妹子的背影在心中狂笑\n"),mzhg=10086;
        break;
    }}
    Slowsay("又过了一夜,你的食物-2\n");
    if(vv==0) ch=_getch();
    qp();
    sw=sw-2;
    if(sw<0)
    {
        esl();
        return 0; 
    }
    if(mzhg==1) Slowsay("那个妹子又来找到了你,并邀请你加入他们的幸存者基地\n");
    else Slowsay("你在附近发现了一个幸存者基地\n");
    if(swx!=2){
    Slowsay("在前往基地的途中,你遇到了丧尸\n");
    Slowsay("你且战且退,大量丧尸把你逼进了一家商店\n");
    Slowsay("门口的丧尸越来越多,你选择\n");
    Slowsay("1.杀出去\n");
    Slowsay("2.守在这\n");
    while(true)
    {
        x=read();
        if(x<1||x>2)
        {
            Slowsay("请重新输入\n");
            continue;
        }
        if(x==1)
        {
            int res=0;
            if(mzhg>0)
                res=1;
            else res=3;
            if(zd<res)
            {
                mzd();
                return 0;
            }
            zd=zd-res;
            printf("你消耗了一些子弹冲了出去,子弹-%d\n",res);
            if(mzzd==1&&mp==-1)
            {
                Slowsay("妹子在她杀死的丧尸的尸体上找到了许多物资,子弹+7,食物+3\n");
                zd=zd+7;sw=sw+3;
                mz=1;
                break;
            }
            x=rand()%5;
            if(res==1&&x!=3)
                Slowsay("妹子为了帮你突围,被丧尸咬到,然后自杀了。\n"),mzhg=-1; 
            if(x==3&&res==1)
            {
                td3();
                return 0;
            }
        }
        else
        if(x==2)
        {
            if(zd<5)
            {
                mzd();
                return 0;
            }
            zd=zd-5;
            Slowsay("你守在这家商店里直到杀死了所有找来的丧尸,子弹-5\n"); 
            if(mzhg==1)
            {
                Slowsay("妹子在商店中发现了一把无限子弹的枪,子弹+10086\n");
                zd=10086;
                if(vv==0) ch=_getch();
                Slowsay("但是妹子在翻找货架的时候被沾了丧尸血的货架划伤\n");
                Slowsay("妹子自杀了\n");
                mzhg=-1; 
            }
        }
        break;
    }}
    if(vv==0) ch=_getch();
    qp();
    Slowsay("你来到了这个幸存者基地\n");
    if(mz==10086) {system("cls");Slowsay("人们在一位年轻首领的带领下顽强的与你战斗\n每个人都在尽自己的努力去守卫基地\n哪怕战友们一个个倒下\n哪怕首领被你愤怒的捏爆脑袋\n没有一个人放弃战斗,没有一个人抛弃希望\n\n最后,奇迹出现了\n\n在基地的废墟中,你的尸体沉重的倒下。\n\n");s++;Sleep(1000);return 0;}
    Slowsay("这个基地的首领表示可以用子弹交换你手中的食物\n");
    printf("你还有%d份食物,%d份子弹\n",sw,zd);
    if(vv==0) ch=_getch();
    Slowsay("请输入你需要的子弹数(0-9)\n");
    while(true)
    {
        x=read();
        if(x<0||x>sw)
        {
            Slowsay("请重新输入\n");
            continue;
        }
        sw=sw-x;
        zd=zd+x;
        if(x>=1)
        {
            Slowsay("首领很开心你能提供稀缺的食物,多给了你1份子弹\n");
            zd=zd+2;
        }
        break;
    }
    if(vv==0) ch=_getch();
    qp();
    Slowsay("又过了一天,食物-2");
    sw=sw-2;
    if(sw<0)
    {
        esl();
        return 0;
    }
    if(vv==0) ch=_getch();
    system("cls");
    Slowsay("基地首领希望你加入这个基地\n");
    Sleep(500);
    Slowsay("你的选择是\n");
    Sleep(500);
    system("Color C");
    Slowsay("1.留在这");
    Slowsay("2.离开");
    while(true)
    {
        x=read();
        if(x<1||x>2)
        {
            Slowsay("请重新输入\n");
            continue;
        }
        system("Color F");
        if(swx==2&&x==1){system("cls");Slowsay("在一个月黑风高的夜里,你终于忍不住袭击了营地。\n年轻首领被你梦中封喉。\n人们顽强的与你战斗\n每个人都在尽自己的努力去守卫基地\n没有一个人放弃战斗,没有一个人抛弃希望\n但是他们失败了。\n在基地的废墟中,英雄们的尸体沉重的倒下。\n\n而你狂笑着吞噬着一切。\n\n");Sleep(1000);return 0;}
        else if(x==1)
        {
            if(mzhg>-1) hd2();
            else hd3(); 
            return 0;
        }
        else if(x==2)
        {
            Slowsay("你决定\n");
            Slowsay("1.当天离开\n");
            Slowsay("2.再停留一天\n"); 
            while(true)
            {
                x=read();
                if(x<1||x>2)
                {
                    Slowsay("请重新输入\n");
                    continue;
                }
                if(x==1) break;
                if(x==2)
                {
                      if(vv==0) ch=_getch();
                     qp();
                    Slowsay("这个基地的首领表示可以用子弹交换你手中的食物\n");
                    printf("你还有%d份食物,%d份子弹\n",sw,zd);
                    if(vv==0) ch=_getch();
                    Slowsay("请输入你需要的子弹数\n");
                    while(true)
                    {
                        x=read();
                        if(x<0||x>sw)
                        {
                            Slowsay("请重新输入\n");
                            continue;
                        }
                        sw=sw-x;
                        zd=zd+x;
                        if(x>=3)        
                        {
                            Slowsay("首领很开心你能提供稀缺的食物,多给了你3份子弹\n");
                            zd=zd+3;
                        }
                        break;
                    }
                    sw=sw-2;
                    if(sw<0)
                    {
                        esl();
                        return 0;
                    }
                    Slowsay("又过了一夜,食物-2\n"); 
                }
                break;
            }
            Slowsay("在你离开的时候,一个少年跑了过来。\n");
            Slowsay("他说,他想要和你一起走\n");
            Slowsay("1.带上他\n");
            Slowsay("2.不带他\n");
            while(true)
            {
                x=read();
                if(x<1||x>2)
                {
                    Slowsay("请重新输入\n");
                    continue;
                }
                if(x==2)
                {
                    Slowsay("少年生气的离开了");
                    if(swx!=2) Slowsay(",当他走远了,你才发现\n\n在刚刚的接触中,他偷走了你所有的子弹\n");
                    else Slowsay("\n当你走远后,你才发现,少年一直冷笑着跟在你的身后\n"),sn=1;
                    zd=0;
                }
                if(x==1)
                {
                    Slowsay("你选择上少年一起走\n");
                    Slowsay("少年将他身上带着的一份食物交给了你\n");
                    sw=sw+1;
                    Slowsay("食物消耗+1,少年入队\n");
                    sn=1;
                }
                break;
            }
        }
        break;
    }
    if(vv==0) ch=_getch();
    qp();
    printf("你在路边的一座没人的房子里过了一夜,食物-%d\n",2+sn);
    sw=sw-2-sn;
    if(vv==0) ch=_getch();
    if(sn==1&&swx==2)
    {
        Slowsay("\n1.杀了少年,这时没人可以阻止你!\n");
        Slowsay("2.我决定在少年面前一直隐瞒到底\n");
        x=read();
        if(x==1){Slowsay("少年不见了,难道他发现了......\n\n你一回头,少年咯咯笑着咬住你的脖子\n\n你应该等我虚弱时再下手啊.....\n\n");s++;return 0;}
    }
    if(sw<0)
    {
        esl();
        return 0;
    }
    Slowsay("是否存档?\n");
    Slowsay("1.存档(记录当前进度,只能有一个存档)\n");
    Slowsay("2.不存\n");
    x=read();
    if(x==1)
    {
        cdd=1;
        sw1=sw;
        zd1=zd;
        mp1=mp;
        mz1=mz;
        sn1=sn;
        Slowsay("存档成功");
    }
cddd1:
    qp();
    if(sn==1)
    {
        vv=0;
        Slowsay("今天一早你就被少年叫醒了,\n");
        if(vv==0) ch=_getch();
        Slowsay("他在床底下发现了一箱方便面,食物+8\n");
        sw=sw+8;
        Slowsay("少年向你讨要武器,你决定\n");
        Slowsay("1.把枪给他\n");
        Slowsay("2.把捡到的水管给他\n");
        Slowsay("3.什么都不给他\n");
        while(true)
        {
            x=read();
            if(x<1||x>3)
            {
                Slowsay("请重新输入\n");
                continue;
            }
            if(x==1) gun=0,qiang=2;
            if(x==2) gun=2,qiang=1;
            if(x==3) gun=0,qiang=1;
            break;
        }
    }
    else
    {
        Slowsay("你在冰箱里发现了几包巧克力\n");
        if(vv==0) ch=_getch();
        Slowsay("希望它们还没过期吧,食物+3\n");
        sw=sw+3;
    }
    if(vv==0) ch=_getch();
    Slowsay("今天你们来到了一家大商场\n");
    Slowsay("你决定\n");
    Slowsay("1.独自探索1楼\n");
    Slowsay("2.独自探索2楼\n");
    if(sn==1)
    {
        Slowsay("3.和少年一起探索2楼");
    }
    while(true)
    {
        x=read();
        if(x<1||x>3)
        {
            Slowsay("请重新输入\n");
            continue;
        }
        if(x==1)
        {
            Slowsay("你在一楼发现了一些子弹,子弹+3\n");
            zd=zd+3;
            Slowsay("奇怪的是,一只丧尸都没有看到\n");
            if(vv==0) ch=_getch(); 
            if(sn>0)
            {
                if(qiang==2)
                {
                    Slowsay("当你来到二楼时,发现了一地尸体\n");
                    Slowsay("少年就倒在这尸体中间,他死前手还紧紧握着枪\n");
                    Slowsay("你把枪拿了回来,并在少年的尸体下面发现了一箱压缩饼干\n");
                    Slowsay("食物+10086\n");
                    if(vv==0) ch=_getch();
                    sw=10086;
                    if(sw>10000&&zd>9000) 
                    {
                        td();
                        return 0;
                    }
                    sn=0;
                    qiang=1;
                }
                else
                {
                    Slowsay("当你来到二楼时,发现了少年的尸体\n");
                    if(vv==0) ch=_getch();sn=0;
                    Slowsay("你紧紧握着手中的枪,猛地一回头\n");
                    Slowsay("四周大量的丧尸向你涌来\n");
                    if(vv==0) ch=_getch();
                    zd=zd-5;
                    if(zd<0)
                    {
                        mzd();
                        return 0;
                    }
                    Slowsay("你杀光了这些丧尸,子弹-5\n");
                    if(vv==0) ch=_getch();
                    Slowsay("你在二楼找到了食物,食物+3\n");
                    sw+=3;
                }
            }
        }
        if(x==2)
        {
            Slowsay("你来到了二楼,数之不尽的丧尸忽然从阴影中窜出\n");
            if(qiang==2)
            {
            Slowsay("尽管你没了枪也尽力抵抗,可丧尸的数量实在太多。\n");
                mzd();
                return 0;
            }
            if(vv==0) ch=_getch();
            zd-=5;
            if(zd<0)
            {
            Slowsay("尽管你尽力抵抗,可丧尸的数量实在太多。\n");
                mzd();
                return 0;
            }
            Slowsay("你杀光了这些丧尸,子弹-5\n");
            if(vv==0) ch=_getch();
            Slowsay("你在二楼找到了食物,食物+3\n");
            sw+=3;
            if(sn==1)
            {
                Slowsay("少年在一楼找到了子弹,子弹+3\n");
                zd=zd+3;
            }
        }
        if(x==3&&sn==1)
        {
            system("cls");
            Slowsay("你们来到了二楼\n"); 
            if(vv==0) ch=_getch();
            system("Color C");
            Slowsay("数之不尽的丧尸从阴影中窜出");
            Slowsay("尽管你们尽力抵抗,可丧尸的数量实在太多。");
            if(gun!=2&&qiang!=2)
            {
                Slowsay("没有武器的少年被当场咬死。");
                if(mp==-1&&mz==0)
                {
                    td5();
                    return 0;
                }
                sn=0;   
            }
            Slowsay("其中一只丧尸趁你不注意冲到了你的旁边");
            if(gun==2) Slowsay("就在你要被咬死的时候,少年扔出了手中的水管\n,救下了你");
            else if(qiang!=2)
            {
                zd=zd-3;
                if(zd<0)
                {
                    mzd();
                    return 0;
                }
                Slowsay("你赶忙回头几枪补掉了这只丧尸,子弹-3");
            }
            zd=zd-3;
            if(qiang==2||zd<0)
            {
                system("Color F"); 
                mzd();
                return 0;
            }
            system("Color F"); 
            Slowsay("经过了一番苦战,你们终于战胜了所有丧尸,子弹-3");
            if(vv==0) ch=_getch();
        }
        break;
    }
    if(vv==0) ch=_getch();
    qp();
    if(vv==0) ch=_getch();
    printf("又过了一夜,食物-%d\n",sn+2);
    sw=sw-2-sn;
    if(sw<0)
    {
        esl();
        return 0;
    }
    qp();
    Slowsay("今天在出门的时候\n");
    Slowsay("你遇到了一条流浪狗\n");
    Slowsay("1.用枪打死它\n");
    Slowsay("2.用食物打发它\n");
    while(true)
    {
        x=read();
        if(x<1||x>2)
        {
            Slowsay("请重新输入\n");
            continue;
        }
        if(x==1)
        {
            zd=zd-1;
            if(zd<0)
            {
                bd7();
                return 0;
            }
            Slowsay("你一枪打死了这条狗,子弹-1\n");
            if(sn==0) break;
            Slowsay("在打死了狗之后,你忽然发现少年的脸色不太好\n");
            if(vv==0) ch=_getch();
            Slowsay("原来,在昨天的商场中,少年早就被咬了一口");
            Slowsay("他一直瞒着你,不敢说出来");
            Slowsay("此时,他闻到了血腥味,看到了尸体,已经忍不住,濒临变异了!!");
            Slowsay("你决定\n");
            Slowsay("1.杀了他\n");
            Slowsay("2.不杀他\n");int a3=0;
            if(gjj[4]==1&&zd<4)
            {
                Slowsay("3.安抚他\n");a3=1;
            }
            while(1)
            {
                x=read();
                if(x<1||x>3||(x==3&&a3==0))
                {
                    Slowsay("请重新输入\n");
                    continue;
                }
                if(x==1)
                {
                    if(swx==2)
                    {
                        if(mzhg<-1000) tgg3();
                        else Slowsay("\n“杀我还早的很呢......”\n\n少年咯咯笑着挡下了你所有的攻击\n\n“因为你还不是一个优秀的丧尸......”"),Sleep(1000),mzd();
                        return 0;
                    }
                    if(vv==0) ch=_getch();
                    if(mp==-1&&mz==0)
                    {
                        Slowsay("奇怪的是,你直接秒掉了他。\n");Sleep(1000); 
                        sn=0;
                        td5();
                        return 0;
                    }
                    else if(mp==-1&&mz!=0)
                    {
                        Slowsay("突然,妹子出现了。\n");
                        Slowsay("“放着我来!”,妹子与少年搏斗起来,妹子的力气极大,竟然真的压制住了少年!\n");
                        Slowsay("在你的惊恐目光下,少年的皮肤渐渐变淡,重新变回了“人”!\n");
                        Slowsay("这时,你才注意到少年的声音一直带着点沙哑,如同低吼一般\n");
                        Slowsay("“我没事。”他说。\n");
                    }
                    else
                    {
                    system("Color C");
                    Slowsay("你试着向他开枪,子弹穿过了他的身体\n");
                    Slowsay("你十分惊恐,疯狂地倾泻着手中的弹药\n");
                    Slowsay("“没有用的。”少年咯咯笑着向你走进,\n");
                    Slowsay("而他的伤口却以肉眼可见的速度愈合!\n");
                    Slowsay("怎么可能!怎么可能,怎么可能......\n");
                    system("Color F");
                        mzd();
                        if(zjj[9]==0)
                        {
                            Slowsay("获得线索-----无敌变异!·少年\n");Sleep(1000);
                            zjj[9]=1;
                        }
                        return 0;
                    }
                }
                if(x==2)
                {
                    system("Color C");
                    Slowsay("你看着少年变异\n");
                    Slowsay("奇怪的是,他变异后并没有像其他的丧尸一样,向你扑过来\n");
                    Slowsay("而是躲在墙角瑟瑟发抖\n");
                    Slowsay("你慢慢的走过去\n");
                    Slowsay("就在你走近的时候,少年突然暴起\n");
                    Slowsay("狠狠地咬住了你的手臂\n");
                    Slowsay("你赶忙用枪打死他,可是为时已晚\n");
                    system("Color F");
                    sn=0;
                    if(sw>=6){td2();return 0;}
                    else{bd6();return 0;}
                }
                break;
            }
            if(x==3&&gjj[4]==1)
            {
                gjj[5]=1;
                hd5();
                return 0;
            }
        }
        if(x==2)
        {
            sw=sw-1;
            if(sw<0){bd7();return 0;}
            Slowsay("你用一份食物引开了这条狗,食物-1\n");
        }
        break;
    }if(swx==2)
    {system("cls");if(sn==1) Slowsay("少年的变异的很突然,但身为丧尸的你没有受到攻击\n你们结伴一起狩猎着人类\n只是,与少年相处的越久,你就越发感受到他的强大。\n你只好收起杀心跟在他后面。\n应该是这样吗?"),Sleep(1000),Slowsay("\n\n“我错过了机会”\n"); 
    else Slowsay("少年死后,你无聊的屠杀着一切,\n在接下来的几天里,你轻松的杀掉了城中所有的生物\n之后,你只能天天游荡,无助的面对着这座死城\n应该是这样吗?\n"),Sleep(1000),Slowsay("\n“我走错了路。”");
    Sleep(1000);return 0;} 
    if(vv==0) ch=_getch();
    if(sn==1&&sw>=4&&gun==2&&zd>5){hd4();return 0;}
    if(sn==1)
    {
        Slowsay("又过了一天,食物-2\n");
        sw=sw-2;
        if(sw<0){esl();return 0;}
        if(vv==0) ch=_getch();
            system("cls");
        Slowsay("今天早上,你发现少年不见了\n");
        Slowsay("你决定\n");
        Slowsay("1.去寻找他\n");
        Slowsay("2.不去找他\n");
        while(true)
        {
            x=read();
            if(x<1||x>2)
            {
                Slowsay("请重新输入\n");
                continue;
            } 
            if(x==1)
            {
            system("cls");qp(); 
                Slowsay("你通过蛛丝马迹一路追踪,来到了一座大厦前\n");
                Slowsay("在路上,你遭遇了丧尸,子弹-2\n");
                zd=zd-2;
                if(zd<0)
                {
                    mzd();
                    return 0;   
                }
                Slowsay("你决定\n");
                system("Color C");
                Slowsay("1.破门!冲入大厦\n");
                Slowsay("2.悄悄开门,潜入大厦\n");
                Slowsay("3.寻找其它的入口\n");
                while(true)
                {
                    x=read();
                    if(x<1||x>3)
                    {
                        Slowsay("请重新输入\n");
                        continue;
                    }
                    if(x==1)
                    {
                        int xx=rand()%4; 
                        Slowsay("你进入大厦才发现这里几乎充满了丧尸!");
                        Slowsay("丧尸似乎被你惊醒,如同海啸般向你涌来!");
                        system("Color F");
                        if(zd>6) Slowsay("怎么回事!!你一路且战且退来到了地下室"),zd-=6,bd9();
                        else if(xx==0) Slowsay("幸运的是,你退后的脚碰到了地下室的暗门,Thanks God!"),bd9();
                        else Sleep(1000),mzd();
                        return 0;
                    }
                    if(x==2)
                    {
                        int xx=rand()%6;
                        Slowsay("你进入大厦才发现这里几乎充满了丧尸!");
                        system("Color F");
                        Slowsay("怎么回事!!你害怕得定在原地,奇怪的是它们并没有向你扑来,只是疲惫的看着你。");
                        Slowsay("定睛一看,丧尸们个个躯体畸形,断手断脚者不乏其数");
                        Slowsay("再一看,这些丧尸们被奇怪的机器束缚,不得踏出大厦一步。");
                        Slowsay("你大着胆子靠近一个丧尸,发现它的头上有着模糊的字迹");
                        Slowsay("【21.7.29,失败】");Sleep(1000); 
                        Slowsay("瞬间,那个丧尸惊恐地捂住头上的字,发出奇怪的吼声!");
                        Slowsay("其它丧尸如同被激怒,海啸般向你涌来!");
                        if(zd>6) Slowsay("怎么回事!!你一路且战且退来到了地下室"),zd-=6,bd9();
                        else if(xx==0) Slowsay("幸运的是,你退后的脚碰到了地下室的暗门,Thanks God!"),bd9();
                        else Sleep(1000),mzd();
                        return 0;
                    }
                    if(x==3)
                    {
                        system("Color F");
                        Slowsay("你走入刚刚的大街,你的老相识开心地吐着舌头看着你");
                        Slowsay("......后面跟着它的一堆朋友......");
                        Slowsay("......你被讨食的狗狗们追着跑过了两条大街,不停地扔出食物来减缓它们的攻势......");
                        if(sw>5) Slowsay("终于,它们全部满足的趴倒在了地上。\n领头狗如同可以听懂人话一样,将你带到了一个隐蔽的地道口前......"),sw-=5,bd9();
                        else bd7();
                        return 0;
                    }
                    break;
                }
            }
            break;
        }
    }
    qp();
    if(vv==0) ch=_getch();
    if(mz==1&&sn==1&&swx==0){td6();return 0;}
    Slowsay("又过了一天,食物-2");
    sw=sw-2;if(sw<0){esl();return 0;}
    Sleep(500);
    Slowsay("遭遇丧尸,子弹-3");
    zd=zd-3;if(zd<0){mzd();return 0;}   
    Sleep(500);
    Slowsay("又过了一天,食物-2");
    sw=sw-2;if(sw<0){esl();return 0;}
    Sleep(500);
    Slowsay("遭遇丧尸,子弹-2");
    zd=zd-2;if(zd<0){mzd();return 0;}   
    Sleep(500);
    if(ccg==1){tg(); return 0;}
    else{bd10();return 0;}
}
int main()
{
    srand(time(0));
    Read();
    int go=0;
    while(tongguan1!=2)
    {
        int v=0;
        char ch;
        mp=0;
        if(go==1){
        Sleep(1000);
        if(vv==0) ch=_getch();
        system("cls");Save();}go=1;
        Slowsay("1.进行游戏\n");
        Slowsay("2.查看成就\n");
        Slowsay("3.查看线索(获得全部线索后通关游戏)\n");
        Slowsay("4.获得一条随机的提示\n");
        Slowsay("5.游戏相关\n");
        Slowsay("6.极速模式\n");
        Slowsay("7.退出游戏\n");
        x=read();
        if(x==1)
        { 
            sswj();
            if(s>50&&swhm==0)
            {
                swhm=1;
                Slowsay("又死了啊......");
                Slowsay("这已经是第几次了呢......");
                Slowsay("一个柔和的声音从耳边传来");
                Slowsay("或许早该放弃了");Sleep(1000);
                Slowsay("获得线索-----计数者");
            }
        } 
        if(x==2)
        {
            int v1=0;
            system("cls");
            if(tongguan1==2) Slowsay("\n已通关终极剧情\n");
            if(tongguan1==1) Slowsay("\n已通关进阶剧情(进阶不重要!终极才是王道!)\n");
            if(tongguan==1) Slowsay("\n已通关基础剧情\n");
            int v=0;
            Slowsay("\nHappy Bnd 达成\n");
            if(gjj[1]==1) Slowsay("苟到最后\n");else Slowsay("未达成\n"); 
            if(gjj[2]==1) Slowsay("神仙眷侣\n");else Slowsay("未达成\n"); 
            if(gjj[3]==1) Slowsay("英雄不朽\n");else Slowsay("未达成\n"); 
            if(gjj[4]==1) Slowsay("认清自己\n");else Slowsay("未达成\n"); 
            if(gjj[5]==1) Slowsay("跨越物种的gay\n");else Slowsay("未达成\n"); 
            Slowsay("\n");
            Slowsay("Bad End 达成(共15个)\n");
            for(int i=1;i<=17;i++)
                if(hjj[i]==1)
                    printf("%d ",i),v1++;
            if(v1>=15&&swx==1)
                swx=2,cdd=0,Swx();
            Slowsay("\n");
            printf("当前死亡次数:%d",s);
            Slowsay("\n");
            Slowsay("True End 达成\n");
            if(zjj[1]==1) Slowsay("拯救世界\n");else Slowsay("未达成\n");   
            if(zjj[3]==1) Slowsay("认清?·妹子\n");else Slowsay("未达成\n");  
            if(zjj[2]==1) Slowsay("认清!·本我\n"); else Slowsay("未达成\n");  
            if(zjj[4]==1) Slowsay("验证失败\n");else Slowsay("未达成\n");  
            if(zjj[5]==1) Slowsay("死亡姗姗来迟\n");else Slowsay("未达成\n");  
            Slowsay("\n");
            if(vv==0) char ch=_getch();
        }
        if(x==3)
        {
            system("cls");
            int v=0;
            Slowsay("基础线索\n");
            if(zjj[1]==1) Slowsay("    奇特的枪与饼干\n"),v++;else Slowsay("    ?????\n");
            if(zjj[2]==1) Slowsay("    延迟变异?·少年\n"),v++;else Slowsay("    ?????\n");
            if(zjj[9]==1) Slowsay("    无敌变异!·少年\n"),v++;else Slowsay("    ?????\n");
            if(zjj[3]==1) Slowsay("    不变异?  ·妹子\n"),v++; else Slowsay("    ?????\n");
            if(hjj[8]==1) Slowsay("    早已变异!·妹子\n"),v++; else Slowsay("    ?????\n");
            if(hjj[9]==1) Slowsay("    实验体·1号和2号\n"),v++; else Slowsay("    ?????\n");
            if(v>=6&&ccg==0)
            {
                Sleep(2000);
                cdd=0;cg();ccg=1;
            }
            Slowsay("进阶线索\n");
            if(swhm==1) Slowsay("    计数者\n"),v++; else Slowsay("    ?????\n");
            if(zbbj==1) Slowsay("    乱码,废弃与失联\n"),v++; else Slowsay("    ?????\n");
            if(by==1) Slowsay("    早已变异!·本我\n"),v++; else Slowsay("    ?????\n");
            if(hjj[15]==1) Slowsay("    伪造......\n"),v++; else Slowsay("    ?????\n"); 
            if(zjj[5]==1) Slowsay("    少年之死\n"),v++; else Slowsay("    ?????\n");
            if(hjj[14]==1) Slowsay("    外面的世界\n"),v++; else Slowsay("    ?????\n");
            if(v>=12&&qxs==0)
            {
                Sleep(2000);
                cg2();cdd=0;Sleep(1000);
                Slowsay("-------- 游戏进阶结局已解锁(快前往达成吧)--------");qxs=1;
            }
            if(vv==0) ch=_getch();
        } 
        if(x==4)
        {
            system("cls");
            int y=rand()%3;
            if(y==0){Slowsay("【稀有提示】"); x=rand()%14;
            if(x==0) Slowsay("【稀有结局提示】 试试 0 10 开局!");
            else if(x==1) Slowsay("【稀有结局提示】 最好的爱总要先错过~");
            else if(x==2) Slowsay("【剧情提示】 二周目:少年变异后有新剧情!");
            else if(x==3) Slowsay("【剧情提示】 不变异的妹子总有一天会在营地暴露!再来一遍!");
            else if(x==4) Slowsay("【剧情提示】 弹尽粮绝之时,变异的少年会记起上辈子的爱情!再来一遍!");
            else if(x==5) Slowsay("【剧情提示】 第二天,和首领换更多子弹,他会更开心!");
            else if(x==6) Slowsay("【剧情提示】 在家里等待疯掉?再来一遍!");
            else if(x==7) Slowsay("【剧情提示】 二周目:再次进入实验室吧!");
            else if(x==8) Slowsay("【剧情提示】 二周目:神枪手妹子...");
            else if(x==9) Slowsay("【剧情提示】 二周目:不带子弹!等待救援!");
            else if(x==10) Slowsay("【通关方式】 二周目:在获得所有线索后前往“外面的世界”。");
            else if(x==11) Slowsay("【通关方式】 三周目:(都提示这么明显了)吃掉妹子,杀掉少年。");
            else if(x==12) Slowsay("【线索提示】 死亡很多次后......(有个地方可以刷死亡次数)");
            else Slowsay("【???】 666666,5201314(会错过一些线索与结局!)");
            }else{x=rand()%14;
            if(x==0) Slowsay("加了好感后,妹子有几率不死");
            else if(x==1) Slowsay("少年喜欢子弹");
            else if(x==2) Slowsay("乱走有时可以获得子弹");
            else if(x==3) Slowsay("冲进去活下来几率更大");
            else if(x==4) Slowsay("分头探商店可以获得更多资源");
            else if(x==5) Slowsay("有一些结局只能通关后触发");
            else if(x==6) Slowsay("有一些结局要脸好才能触发");
            else if(x==7) Slowsay("有一些结局要通其他结局后才能触发");
            else if(x==8) Slowsay("大多数时候,你认为一个地方没有好结局只是因为你食物/子弹不够"); 
            else if(x==9) Slowsay("绝大多数的线索来自结局");
            else if(x==10) Slowsay("三大重叠剧情线路:普通,进阶,尸王线");
            else if(x==11) Slowsay("本游戏是一个剧情严谨,人物丰满,细思极恐的好!游!戏!~");
            else if(x==12) Slowsay("事实证明剧情游戏是最难调的!有Bug一定要去博客说出来啊!(luogu.com.cn/blog/z1e2k3i4/)");
            else Slowsay("完成目标后,需要在线索,成就界面开启新剧情哦");
            }
            if(vv==0) char ch=_getch();continue;
        }
        if(x==5)
        {
            system("cls");
            Slowsay("作者:小小小苗\n");
            Slowsay("改错,调试,搬运,游玩:胎神大大(就是在游戏论坛翻到的宝藏而已emm......)\n");
        }
        if(x==6)
        {
            system("cls");
            if(vv==0) vv=1,Slowsay("已开启极速模式");
            else vv=0,Slowsay("已关闭极速模式");
        }
        if(x==7)
        {
            system("cls");
            Slowsay("想退?死吧!!");s++; 
        }
    }
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN);
    Slowsay("Thanks for playing......");Sleep(1000); 
    Slowsay("您已通关,我亲爱的 终极丧尸,成功者,杀人机器,你还没杀够吗?......");system("Color C"); 
}

标签:br,Slowsay,int,Sun,c++,else,小游戏,&&,点赞
From: https://blog.csdn.net/FGH51401/article/details/140418800

相关文章

  • Linux C++ 059-设计模式之备忘录模式
    LinuxC++059-设计模式之备忘录模式本节关键字:Linux、C++、设计模式、备忘录模式相关库函数:概念备忘录模式(MementoPattern),又叫做快照模式(SnapshotPattern)或Token模式,是GoF的23种设计模式之一,属于行为模式。定义(源于GoF《设计模式》):在不破坏封闭的前提下,捕获一个......
  • Linux C++ 060-设计模式之单例模式
    LinuxC++060-设计模式之单例模式本节关键字:Linux、C++、设计模式、单例模式相关库函数:概念单例模式是设计模式中最简单的形式之一。这一模式的目的是使得类的一个对象成为系统中的唯一实例。要实现这一点,可以从客户端对其进行实例化开始。因此需要用一种只允许生成对......
  • C++ 基础 - 3 - 数据类型
    简言什么是数据类型?数据类型(DataTypes)是变量或函数返回值的属性,它们决定了变量可以存储哪种类型的数据,以及这些数据如何被解释和存储在计算机的内存中。C++是一种静态类型语言,这意味着每个变量都必须在使用前声明其类型。C++提供了丰富的数据类型,可以分为几大类:基本......
  • C++ 基础 - 2 - 变量常量
    简言什么是变量与常量在计算机编程中,变量是存储数据的一种容器。它可以用于存储各种类型的数据,如整数、浮点数、字符串等。变量的值可以随时改变。常量与变量相反,常量是一个固定的值,它在程序运行期间是不会改变的。常量在程序中起到类似变量的作用,但其值是固定的,不能被......
  • C++学习第一天
    CPP的学习day11.VisualStudio的学习安装跳过……1.创建项目选择创建新项目因为是学习,选择第二个控制台应用分配好后点击创建等一会儿就创建好了……先修改设置:右击选择属性然后改为如下图2.CPP的表达式概念表达式就是运算符和操作数的序列,指定一项计算,表达式的求......
  • c++中结构体与类的区别
    在C++中,结构体(struct)与类(class)在功能上非常相似,实际上他们之间的主要区别在于默认的访问权限和继承方式。下面详细解释这两种类型的区别:结构体与类最大的不同就在于访问权限默认访问权限结构体(struct):默认的成员访问权限是公开的(public)。这意味着,除非显式地指定访问......
  • C++竞赛优化技巧与考场实用技巧
    在洛谷观看更加简约哦~:一键直达距离2024CSP/NOIP已经不远了,在这里,我便分享一下我总结出来的竞赛优化技巧时间优化算法/数据结构优化在处理一些问题,我们可以采用更高效的算法/数据结构来代替低效的算法/数据结构。例如,你需要多次求一段区间的和时,一般会采用循环直接......
  • 2024年华为OD机试真题-图像物体的边界-C++-OD统一考试(C卷D卷)
     2024年OD统一考试(D卷)完整题库:华为OD机试2024年最新题库(Python、JAVA、C++合集)题目描述:给定一个二维数组M行N列,二维数组里的数字代表图片的像素,为了简化问题,仅包含像素1和5两种像素,每种像素代表一个物体,2个物体相邻的格子为边界,求像素1代表的物体的边界个数。像素1代表的......
  • Visual Studio 2022下载安装教程c++
    文章目录VisualStudio安装教程一、官网下载二、安装三、配置四、VisualStudio2022使用教程VisualStudio安装教程一、官网下载下载地址:https://visualstudio.microsoft.com/zh-hans/downloads/二、安装要是个人学习的活就下载社区版下载完成后是一个安......
  • C++ 智能指针类型转换测试
    这个是GPT回答的,可以运行。#include<iostream>#include<memory>classBase{public:virtualvoidshow()const{std::cout<<"Baseclass"<<std::endl;}virtual~Base()=default;//确保基类有虚析构函数};classDe......