火影抽卡模拟器1.0.1

news/2025/1/11 10:54:53/

修复了以下BUG:

1.抽卡概率过高

2.抽卡意外中断

增添以下功能:

1.增添文字颜色

2.增添统计系统

话不多说,上代码!

#include<bits/stdc++.h>
#include<windows.h>
#include<stdlib.h>
using namespace std;
int main()
{int A,j=0,gzj=0,a1,ssp=0,gasp=0,asp=0,bzk=0,czk=0,bsp=0,csp=0,jj=0,gzjj=0;srand((UINT)GetCurrentTime());SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); cout<<"火影抽卡模拟器启动中……"<<endl;Sleep(2 * 1000); FLAG: cout<<"1.肝日常"<<endl<<"2.购买高招卷"<<endl<<"3.抽卡"<<endl<<"4.抽卡资料"<<endl;cin>>A;if(A==1){FLAG1:A=0; cout<<"1.肝一天"<<endl<<"2.肝一周"<<endl<<"3.肝一月"<<endl<<"4.肝一年"<<endl<<"5.退出日常"<<endl;cin>>A;if(A==1){A=0;cout<<"肝……"<<endl;Sleep(0.5 * 1000);j+=300;cout<<"你获得了300金币"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG1;}else{if(A==2){A=0;cout<<"肝……"<<endl;Sleep(1 * 1000);j+=2000;cout<<"你获得了2000金币"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG1;}else{if(A==3){A=0;cout<<"肝……"<<endl;Sleep(3 * 1000);j+=10000;cout<<"你获得了10000金币"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG1;}else{if(A==4){A=0;cout<<"肝……"<<endl;Sleep(4 * 1000);cout<<"肝……"<<endl;Sleep(4 * 1000);j+=150000;cout<<"你获得了150000金币"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG1;}else{if(A==5){A=0;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG;}else{cout<<"无效……"<<endl;Sleep(0.5 * 1000); goto FLAG1; }	}	} }}}else{if(A==2){FLAG2:A=0; cout<<"1.买一张"<<endl<<"2.买十张"<<endl<<"3.买五十张"<<endl<<"4.买一百张"<<endl<<"5.退出购买"<<endl;cin>>A;if(A==1){A=0;if(j>=168) {j-=168;jj+=168;gzj+=1;cout<<"你获得了1张高招卷"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;	}else{cout<<"你的金币不足"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;}}else{if(A==2){A=0;if(j>=1680){j-=1680;jj+=1680;gzj+=10;cout<<"你获得了10张高招卷"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;}else{cout<<"你的金币不足"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;} }else{if(A==3){A=0;if(j>=8400){j-=8400;jj+=8400; gzj+=50;cout<<"你获得了50张高招卷"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;	}else{cout<<"你的金币不足"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;} }else{if(A==4){A=0;if(j>=16800){j-=16800;jj+=16800; gzj+=100;cout<<"你获得了100张高招卷"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;	}else{cout<<"你的金币不足"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG2;}}else{if(A==5){A=0;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG;}else{cout<<"无效……"<<endl;Sleep(0.5 * 1000); goto FLAG2; }	}	} }}		}else{if(A==3){FLAG3:A=0;cout<<"1.抽一次"<<endl<<"2.十连抽"<<endl<<"3.退出招募"<<endl;cin>>A;if(A==1){A=0;if(gzj>=1) {gzj-=1;gzjj+=1;a1=rand()%100+1;if(a1<=7){a1=rand()%100+1;if(a1<=30){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN); cout<<"秽土水门碎片*5"<<endl;ssp+=5;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN); cout<<"秽土水门碎片*1"<<endl;ssp+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }a1=0;	}else{if(a1<=16){a1=rand()%100+1;if(a1<=10){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE); cout<<"半蛇兜碎片*4"<<endl;gasp+=4;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE);  cout<<"半蛇兜碎片*1"<<endl; gasp+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }a1=0;	}else{if(a1<=25){a1=rand()%100+1;if(a1<=20){Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE); cout<<"飞段碎片*4"<<endl; asp+=4;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE);   cout<<"飞段碎片*1"<<endl;asp+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }a1=0;	}else{if(a1<=100){a1=rand()%100+1;if(a1<=35){a1=rand()%100+1;if(a1<=5){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);cout<<"B忍整卡*1"<<endl;bzk+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{if(a1<=40){Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);cout<<"B忍碎片*2"<<endl;bsp+=2;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);cout<<"B忍碎片*1"<<endl;bsp+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }		}}else{a1=rand()%100+1;if(a1<=10){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout<<"C忍整卡*1"<<endl;czk+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{if(a1<=30){Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);cout<<"C忍碎片*5"<<endl;csp+=5;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{if(a1<=60){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout<<"C忍碎片*2"<<endl;csp+=2;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout<<"C忍碎片*1"<<endl;csp+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }	}	}	}a1=0;	}	}	} }cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG3;	}else{cout<<"你的高招卷不足"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG3;}	}else{if(A==2){A=0;if(gzj>=10) {gzj-=10;gzjj+=10;for(int i=0;i<10;i++){a1=rand()%100+1;if(a1<=7){ a1=rand()%100+1;if(a1<=30){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN);  cout<<"秽土水门碎片*5"<<endl;ssp+=5;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN);  cout<<"秽土水门碎片*1"<<endl;ssp+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);  }a1=0;	}else{if(a1<=16){a1=rand()%100+1;if(a1<=10){Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE);  cout<<"半蛇兜碎片*4"<<endl; gasp+=4;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE); }else{Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE); cout<<"半蛇兜碎片*1"<<endl;gasp+=1; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}a1=0;	}else{if(a1<=25){a1=rand()%100+1;if(a1<=20){Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE);  cout<<"飞段碎片*4"<<endl;asp+=4; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}else{Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_BLUE); cout<<"飞段碎片*1"<<endl;asp+=1; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}a1=0;	}else{if(a1<=100){a1=rand()%100+1;if(a1<=35){a1=rand()%100+1;if(a1<=5){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);cout<<"B忍整卡*1"<<endl;bzk+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}else{if(a1<=40){Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);cout<<"B忍碎片*2"<<endl;bsp+=2;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}else{Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);cout<<"B忍碎片*1"<<endl;bsp+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}		}}else{a1=rand()%100+1;if(a1<=10){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout<<"C忍整卡*1"<<endl;czk+=1;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}else{if(a1<=30){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout<<"C忍碎片*5"<<endl;csp+=5;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}else{if(a1<=60){Sleep(0.5 * 1000);SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN); cout<<"C忍碎片*2"<<endl;csp+=2;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}else{Sleep(0.5 * 1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_GREEN);cout<<"C忍碎片*1"<<endl;csp+=1;	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |FOREGROUND_GREEN | FOREGROUND_BLUE);}	}	}	}a1=0;	}	}	} }	}cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG3;	}else{cout<<"你的高招卷不足"<<endl;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG3;}}else{if(A==3){A=0;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG;}else{cout<<"无效……"<<endl;Sleep(0.5 * 1000); goto FLAG3; }} }				}else{if(A==4){FLAG4:A=0;cout<<"加载中……"<<endl;Sleep(0.5 * 1000); cout<<"你拥有的金币:"<<j<<endl;cout<<"你拥有的高招卷:"<<gzj<<endl;cout<<"你花费的金币:"<<jj<<endl;cout<<"你花费的高招卷:"<<gzjj<<endl;cout<<"你拥有的高招-S忍碎片:"<<ssp<<endl;cout<<"你拥有的高招-A忍碎片:"<<gasp<<endl;cout<<"你拥有的非高招-A忍碎片:"<<asp<<endl;cout<<"你拥有的B忍整卡:"<<bzk<<endl;cout<<"你拥有的C忍整卡:"<<czk<<endl;cout<<"你拥有的B忍碎片:"<<bsp<<endl;cout<<"你拥有的C忍碎片:"<<csp<<endl;cout<<"输入0退出"<<endl;cin>>A;if(A==0)	{cout<<"加载中……"<<endl;Sleep(0.5 * 1000); goto FLAG;	}else{cout<<"无效……"<<endl;Sleep(0.5 * 1000); goto FLAG4; }}else{cout<<"无效……"<<endl;Sleep(0.5 * 1000); goto FLAG;}} }	} 
} 


http://www.ppmy.cn/news/498243.html

相关文章

我用Axure制作了一款火影小游戏 | PM老猫

&#x1f680; 优质资源分享 &#x1f680; 学习路线指引&#xff08;点击解锁&#xff09;知识定位人群定位&#x1f9e1; Python实战微信订餐小程序 &#x1f9e1;进阶级本课程是python flask微信小程序的完美结合&#xff0c;从项目搭建到腾讯云部署上线&#xff0c;打造一…

火影 - 雏田

这个柔弱的小女生给我的心灵带来了太多的震撼。在此收录一些让我感动的片段 我觉得火影很成功&#xff0c;其中之一是情感&#xff0c;其中之二是音乐。 火影第47集&#xff0c;雏田与宁次交手&#xff0c;下面是描写她心理的一段话&#xff1a;“我一直在看着&#xff0c;多少…

GaussDB整体性能慢分析

目录 问题描述问题现象告警业务影响原因分析分析步骤分析定位方法步骤一步骤二步骤三步骤四CPU满I/O满或者I/O异常内存满网络异常 步骤五并发问题数据库配置问题异常等待事件长时间性能下降短时性能抖动不优SQL 问题描述 整体性能慢。不满足客户作业对时延要求或者不满足客户预…

火影

即使一招失败也坚信自己能赢 继而考虑下一招 自信的力量会成为改变命运的力量

CSS背景相关(background-)

目录&#xff1a; (1)背景图片及平铺 (2)背景位置(position) (3)背景附着 (4)背景简写 (5)背景透明(CSS3) (6)背景缩放(CSS3) (7)多背景(CSS3) (8)凹凸文字 (9)王者荣耀导航栏小案例 (1)背景图片及平铺 背景颜色&#xff1a;background-color背景图片&#xff1a;background-…

web前端开发教程:函数是什么

在火影的世界中存在忍术&#xff0c;忍术是把强大的能量集中在一起以各种各样不同的形式发射出来。怎样使用各种各样的忍术那?通过结印。 好&#xff0c;我们提取一些火影忍者中的关键信息。 1.火影忍者的故事背景有忍术存在&#xff0c;忍术什么样是由忍术先祖发明出来的。…

稳,从数据库连接池 testOnBorrow 看架构设计 | 京东云技术团队

本文从 Commons DBCP testOnBorrow 的作用机制着手&#xff0c;管中窥豹&#xff0c;从一点去分析数据库连接池获取的过程以及架构分层设计。 以下内容会按照每层的作用&#xff0c;贯穿分析整个调用流程。 1️⃣框架层 commons-pool The indication of whether objects wil…

基本数组转换

基本数组转换指的是将一个基本类型的数组转换为另一种类型的数组。这可以通过遍历原始数组&#xff0c;逐个元素进行转换&#xff0c;并将转换后的元素添加到新数组中来实现。 下面是一个示例&#xff0c;将整型数组转换为字符串数组的过程&#xff1a; java // 原始整型数组…