#include<bits/stdc++.h>
using namespace std;
int main(){
system("color f3");
cout<<"欢迎来到保护勇者大陆!\n";
cout<<"版本:2.4 作者:徐烨奎\n";
cout<<"游戏名称:保护勇者大陆!\n2.4版大更新!\n";
cout<<"1.去除了已知的BUG!\n2.增加了渲染效果!\n";
cout<<"=============================="<<endl;
cout<<"= ******* * ="<<endl;
cout<<"= * ******** ="<<endl;
cout<<"= * * ="<<endl;
cout<<"= ******** ************="<<endl;
cout<<"= * ** * * ="<<endl;
cout<<"= * **** * * ="<<endl;
cout<<"= * ** * ********* ="<<endl;
cout<<"= * **** * * * * ="<<endl;
cout<<"= * ** * * * * ="<<endl;
cout<<"= * ******** ="<<endl;
cout<<"= ******** ******** ="<<endl;
cout<<"= * * * * ="<<endl;
cout<<"= * * * * * ="<<endl;
cout<<"= * * ******** ="<<endl;
cout<<"= 大陆 ="<<endl;
cout<<"= 你快来保护! ="<<endl;
cout<<"=============================="<<endl;
cout<<"你好!勇士!\n许多僵尸登上了我们的大陆,请求支援!!!请求支援!!!\n";
cout<<"你好!看起来你们需要帮助,我可以做些什么?\n";
cout<<"1.保护勇者大陆 2.退出\n";
long long a,b,c,d,e,f;
cin>>a;
cout<<endl;
system("color 1f");
if(a==2){
return 0;
}
system("cls");
if(a==1)cout<<"保护勇者大陆开始!\n"<<endl;
cout<<"您需要多少兵?\n"<<"多少医师?\n"<<"多少坦克?\n";
cin>>b>>c>>f;
cout<<b<<"个兵"<<endl<<c<<"个医师"<<endl<<f<<"辆坦克";
system("cls");
cout<<"好的我们马上就到!\n";
system("color E9");
cout<<"我们到了,我们和僵尸展开了激烈的恶斗\n";
cout<<"是否观战"<<endl<<"1.是 2.否\n";
cin>>d;
system("color 35");
system("cls");
if(d==1&&b>=15&&c>=10&&f>=3){
cout<<"第1轮僵尸的攻击让我们损失了一半士兵,五个医师,一辆坦克!!!"<<endl<<"第2轮我们消灭了僵尸!"<<endl<<"胜利!";
return 0;
}
if(d==2&&b>=15&&c>=10&&f>=3){
cout<<"胜利!";
return 0;
}
else if(d==2&&b<15||c<10||f<3)cout<<"失败,您是否需要支援?\n"<<"1.支援 2.离开\n";
cin>>e;
system("cls");
system("14");
if(e==1)cout<<"我们再次与僵尸交战,胜利!";
if(e==2)return 0;
return 0;
}
/*本人原创,未经允许不准转裁*/
徐烨奎在2019-08-20 10:21:09追加了内容
#include<bits/stdc++.h>
using namespace std;
int main(){
system("color f3");
cout<<"欢迎来到保护勇者大陆!\n";
cout<<"版本:2.4 作者:徐烨奎\n";
cout<<"游戏名称:保护勇者大陆!\n2.4版大更新!\n";
cout<<"1.去除了已知的BUG!\n2.增加了渲染效果!\n";
cout<<"=============================="<<endl;
cout<<"= ******* * ="<<endl;
cout<<"= * ******** ="<<endl;
cout<<"= * * ="<<endl;
cout<<"= ******** ************="<<endl;
cout<<"= * ** * * ="<<endl;
cout<<"= * **** * * ="<<endl;
cout<<"= * ** * ********* ="<<endl;
cout<<"= * **** * * * * ="<<endl;
cout<<"= * ** * * * * ="<<endl;
cout<<"= * ******** ="<<endl;
cout<<"= ******** ******** ="<<endl;
cout<<"= * * * * ="<<endl;
cout<<"= * * * * * ="<<endl;
cout<<"= * * ******** ="<<endl;
cout<<"= 大陆 ="<<endl;
cout<<"= 你快来保护! ="<<endl;
cout<<"=============================="<<endl;
cout<<"你好!勇士!\n许多僵尸登上了我们的大陆,请求支援!!!请求支援!!!\n";
cout<<"你好!看起来你们需要帮助,我可以做些什么?\n";
cout<<"1.保护勇者大陆 2.退出\n";
long long a,b,c,d,e,f;
cin>>a;
cout<<endl;
system("color 1f");
if(a==2){
return 0;
}
system("cls");
if(a==1)cout<<"保护勇者大陆开始!\n"<<endl;
cout<<"您需要多少兵?\n"<<"多少医师?\n"<<"多少坦克?\n";
cin>>b>>c>>f;
cout<<b<<"个兵"<<endl<<c<<"个医师"<<endl<<f<<"辆坦克";
system("cls");
cout<<"好的我们马上就到!\n";
system("color E9");
cout<<"我们到了,我们和僵尸展开了激烈的恶斗\n";
cout<<"是否观战"<<endl<<"1.是 2.否\n";
cin>>d;
system("color 35");
system("cls");
if(d==1&&b>=15&&c>=10&&f>=3){
cout<<"第1轮僵尸的攻击让我们损失了一半士兵,五个医师,一辆坦克!!!"<<endl<<"第2轮我们消灭了僵尸!"<<endl<<"胜利!";
return 0;
}
if(d==2&&b>=15&&c>=10&&f>=3){
cout<<"胜利!";
return 0;
}
else if(d==2&&b<15||c<10||f<3)cout<<"失败,您是否需要支援?\n"<<"1.支援 2.离开\n";
cin>>e;
system("cls");
system("14");
if(e==1)cout<<"我们再次与僵尸交战,胜利!";
if(e==2)return 0;
return 0;
}
/*本人原创,未经允许不准转裁*/