充值密码是9228523649871,神秘代码是6633717
那里有bug请找我,谢谢谢谢谢谢谢谢谢谢!!!!!!!!!!!!!!
没什么好说的,直接上程序!
#include<Windows.h>
#include<bits/stdc++.h>
/*打仗原则 aVSb if(a>b)
system("pause"); 按任意键继续
system("cls"); 清屏
system("color xx"); 字体颜色
Sleep(x); 等待
颜色对照表:
0 = 黑色
1 = 蓝色
2 = 绿色
3 = 湖蓝色
4 = 红色
5 = 紫色
6 = 黄色
7 = 白色
8 = 灰色
9 = 亮蓝色
A = 亮绿色
B = 亮湖蓝色
C = 亮红色
D = 亮紫色
E = 亮黄色
F = 亮白色
*/
using namespace std;
int main(){
char name[1000];
char anschar;
long long ansint;
long long money=10000; //坤币
long long gold_brick=5; //金砖
long long silver_ingot=10; //银锭
long long army=100; //军队
long long people=500; //人口
long long individual_attack_power=1; //单兵攻击力
long long AK47=0; //AK47的数量
long long RPG=0; //RPG的数量
long long bomb=0; //核弹的数量
long long moneyshengchanmeifengzhong=1; //每分钟生产的坤币
long long xhzgsb=1000; //小黑子士兵人数
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 欢迎来到鸡国"<<endl;
cout<<" 请创建角色名(1000个字符,无空格):";
cin>>name;
Sleep(500);
cout<<" 你好";
for(int i=0;i<strlen(name);i++){
cout<<name[i];
}
Sleep(1000);
system("cls");
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 坤坤加载中";
for(int i=0;i<10;i++){
cout<<".";
Sleep(500);
}
cout<<endl<<" 鸡国加载中";
for(int i=0;i<10;i++){
cout<<".";
Sleep(500);
}
system("cls");
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 欢迎来到鸡国"<<endl<<" ";
system("pause");
system("cls");
cout<<"---------------------------------------------------------------------"<<endl;
cout<<"IKUN教官:欢迎你,新的IKUN国王,欢迎来到鸡国"<<endl;
Sleep(500);
cout<<"IKUN教官:国库里有10000坤币,这种货币非常值钱,1坤币=1津巴布韦币"<<endl;
Sleep(500);
cout<<"IKUN教官:你作为新一代IKUN国领导人,你不但要使人口增长"<<endl;
Sleep(500);
cout<<"IKUN教官:还要抵御小黑子的进攻,最后消灭他们"<<endl;
Sleep(2500);
system("cls");
while(true){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 请问你要干什么?"<<endl;
cout<<" 1.检查国库"<<endl;
cout<<" 2.前往国际市场"<<endl;
cout<<" 3.进攻小黑子国"<<endl;
cout<<" 4.建造"<<endl;
cout<<" 5.自家小店"<<endl;
cout<<" 6.挂机生产钱"<<endl;
cout<<" 7.装备士兵"<<endl;
cout<<" 8.氪金"<<endl; //*************
cout<<" 9.征兵"<<endl;
cout<<" 10.增加居民"<<endl;
cout<<" 11.小黑子国情报"<<endl;
cout<<" 12.使用核弹"<<endl;
cout<<" 13.神秘代码"<<endl;
cout<<" 0.退出游戏"<<endl;
cin>>ansint;
system("cls");
if(ansint==0){
system("cls");
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 你确定吗?(y/n)";
cin>>anschar;
if(anschar=='y'){
system("cls");
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 存档中";
for(int i=0;i<5;i++){
cout<<".";
Sleep(500);
}
return 0;
}
}
if(ansint==7){
cout<<"-------------------------------------------------------------------------------------------------"<<endl;
cout<<" 你要装备什么给士兵(1.AK47(单兵伤害增加5) 2.火箭筒(单兵伤害增加10))";
cin>>ansint;
if(ansint>2){
cout<<"输入错误!"<<endl;
Sleep(2500);
system("cls");
}
if(ansint==1){
if(AK47>=army){
cout<<"装备成功!"<<endl;
individual_attack_power+=5;
AK47-=army;
Sleep(2500);
system("cls");
}else{
cout<<"你没有足够的AK47"<<endl;
Sleep(2500);
system("cls");
}
}
if(ansint==2){
if(RPG>=army){
cout<<"装备成功!"<<endl;
individual_attack_power+=10;
RPG-=army;
Sleep(2500);
system("cls");
}else{
cout<<"你没有足够的火箭筒"<<endl;
Sleep(2500);
system("cls");
}
}
}
if(ansint==13){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 请输入神秘代码:"<<endl;
cin>>ansint;
if(ansint==6633717){
cout<<" 已成功开启管理员模式"<<endl;
army+=1e6;
people+=1e6;
individual_attack_power+=1e6;
moneyshengchanmeifengzhong+=1e6;
gold_brick+=1e8;
silver_ingot+=1e8;
money+=1e8;
Sleep(2500);
system("cls");
}
}
if(ansint==12){
if(bomb>=1){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 你赢了!你通关了游戏!泰裤辣!"<<endl<<" ";
system("pause");
system("cls");
return 0;
}else{
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 尔等没有核弹,笑死老夫了,哈哈哈哈哈!"<<endl;
Sleep(2500);
system("cls");
}
}
if(ansint==9){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 请问你要招几名士兵?";
cin>>ansint;
cout<<" 征兵中";
for(int i=0;i<ansint;i++){
cout<<".";
Sleep(100);
army++;
}
cout<<endl<<" 征兵完成!"<<endl;
Sleep(2500);
system("pause");
system("cls");
}
if(ansint==10){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 请问你要增加几人?"<<endl;
cin>>ansint;
cout<<" 增加中";
for(int i=0;i<ansint;i++){
cout<<".";
Sleep(100);
people++;
}
cout<<endl<<" 增加完成!"<<endl;
Sleep(2500);
system("pause");
system("cls");
}
if(ansint==8){
cout<<"--------------------------------------------------------------------------------------------"<<endl;
cout<<" 只能充6480,相当于100000000块金砖,100000000块银锭和100000000坤币,是否充值?(y/n)";
cin>>anschar;
if(anschar=='y'){
cout<<" 请输入管理员密码"<<endl<<" ";
cin>>ansint;
if(ansint==9228523649871){
cout<<" 密码正确!"<<endl;
cout<<" 支付中";
for(int i=0;i<10;i++){
Sleep(500);
cout<<".";
}
cout<<endl<<" 充值成功!!!!!"<<endl;
Sleep(2500);
gold_brick+=1e8;
silver_ingot+=1e8;
money+=1e8;
}else{
cout<<" 密码错误!"<<endl;
Sleep(2500);
}
}
system("cls");
}
if(ansint==6){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 请输入挂机时间(秒)"<<endl;
cin>>ansint;
cout<<endl<<" 挂机中";
for(int i=0;i<ansint;i++){
cout<<".";
Sleep(1000);
money+=moneyshengchanmeifengzhong*people;
}
system("cls");
}
if(ansint==3){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 你确定吗?(y/n)"<<endl;
cin>>anschar;
if(anschar=='y'){
if(army*individual_attack_power>xhzgsb*10){
cout<<" 你赢了!泰裤辣!"<<endl;
xhzgsb-=army-xhzgsb;
if(xhzgsb<=0){
cout<<" 你通关了游戏,你真棒!";
Sleep(5000);
system("pause");
return 0;
}
Sleep(2500);
system("cls");
}else if(army*individual_attack_power<xhzgsb*10){
cout<<" 你个失败者!滚!"<<endl;
army-=xhzgsb-army;
if(army<0){
army=0;
}
Sleep(2500);
system("cls");
}
}
}
if(ansint==11){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 小黑子国有"<<xhzgsb<<"名士兵"<<endl;
cout<<" 他们每个人都可以1打10"<<endl;
Sleep(2500);
system("cls");
}
if(ansint==1){
cout<<"-------------------------------------------------------------"<<endl;
cout<<"国库中有"<<money<<"坤币"<<endl;
cout<<"国库中有"<<gold_brick<<"块金砖"<<endl;
cout<<"国库中有"<<silver_ingot<<"块银锭"<<endl;
cout<<"国库中有"<<AK47<<"支AK47"<<endl;
cout<<"国库中有"<<RPG<<"支RPG"<<endl;
cout<<"国库中有"<<bomb<<"个核弹"<<endl;
cout<<"你有"<<army<<"名士兵"<<endl;
Sleep(2500);
system("pause");
system("cls");
}
if(ansint==2){
cout<<"-------------------------------------------------------------"<<endl;
cout<<" 欢迎来到只因国际市场,您要来点什么?"<<endl;
cout<<" 1.只因雕塑(增加效率)10块金砖"<<endl;
cout<<" 2.100支AK47(增加IKUN军人的攻击力)30000坤币"<<endl;
cout<<" 3.RPG 100支(增加IKUN军人的攻击力)50000坤币"<<endl;
cout<<" 4.核弹1枚,摧毁大片小黑子国(战争时使用)100000000块金砖"<<endl;
cout<<" 0.啥也不买,没钱!"<<endl<<" ";
cin>>ansint;
if(ansint==0){
system("cls");
continue;
}
if(ansint==1){
if(gold_brick>=10){
gold_brick-=10;
moneyshengchanmeifengzhong+=100;
cout<<" 购买成功!欢迎您下次光临!"<<endl;
Sleep(1000);
system("cls");
}else{
cout<<" 你没钱!太没实力了!"<<endl;
Sleep(1000);
system("cls");
}
}
if(ansint==2){
if(money>=30000){
money-=30000;
AK47+=100;
cout<<" 购买成功!欢迎您下次光临!"<<endl;
Sleep(1000);
system("cls");
}else{
cout<<" 你没钱!太没实力了!"<<endl;
Sleep(1000);
system("cls");
}
}
if(ansint==3){
if(money>=50000){
money-=50000;
RPG+=100;
cout<<" 购买成功!欢迎您下次光临!"<<endl;
Sleep(1000);
system("cls");
}else{
cout<<" 你没钱!太没实力了!"<<endl;
Sleep(1000);
system("cls");
}
}
if(ansint==4){
if(gold_brick>=1e8){
gold_brick-=1e8;
bomb+=1;
cout<<" 购买成功!欢迎您下次光临!"<<endl;
Sleep(1000);
system("cls");
}else{
cout<<" 你没钱!太没实力了!"<<endl;
Sleep(1000);
system("cls");
}
}
if(ansint>4){
cout<<" 输入错误!"<<endl;
Sleep(1000);
system("cls");
}
}
}
return 0;
}