#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <Windows.h>
using namespace std;
int x,y,chou;
bool card=0,sxbd=0;
int cho[1024];
char up1[64]={"流浪者*****"};
char up2[64]={"行秋****"};
char up3[64]={"砂糖****"};
char up4[64]={"多莉****"};
char oneten;
char a;
int yuanshi=3100;
int main(){
sxbd=false;
cout<<"*****************************"<<endl;
cout<<"*"<<" "<<"//原神模拟抽卡//"<<" "<<"*"<<endl;
cout<<"*"<<" "<<"按a祈愿十次"<<" "<<"*"<<endl;
cout<<"*"<<" "<<"*五星up-流浪者*"<<" "<<"*"<<endl;
cout<<"*"<<" "<<"四星up-行秋-砂糖-多莉"<<" "<<"*"<<endl;
cout<<"*****************************"<<endl;
cout<<"原石数量"<<yuanshi;
cin>>oneten;
if(yuanshi<1600){
cout<<"对不起,你的原石不够了,请按1充值";
cin>>a;
yuanshi=yuanshi+10000;
}
else{
yuanshi=yuanshi-1600;
if(oneten=='a')
{
srand((int)time(NULL));
for(int q=1;q<=10;++q)
{
cho[q]=rand()%741;
}
for(int p=1;p<=10;++p)
{
if(cho[p]>=24 && cho[p]<=152)
{
sxbd=true;
}
}
if(sxbd==false)
{
cho[10]=rand()%129+25;
}
for(int i=1;i<=10;++i)
{
//cout<<cho[i]<<" ";
chou=cho[i];
if(chou>=0 && chou<=9)
{
cout<<"up五星-"<<up1<<endl;
}
if(card==1 && chou>=10 && chou<=23)
{
cout<<"up五星-"<<up1<<endl;
card=false;
Sleep(1000);
}
if(chou==10)
{
cout<<"五星-琴*****"<<endl;
card=true;
}
if(chou==11)
{
cout<<"五星-迪卢克*****"<<endl;
card=true;
}
if(chou==12)
{
cout<<"五星-七七*****"<<endl;
card=true;
原神抽卡3.3流浪者模式(增加了计数系统)
最新推荐文章于 2024-10-14 17:54:02 发布
这是一个使用C++编写的原神模拟抽卡程序,包含流浪者、行秋、砂糖和多莉的UP池。用户可以祈愿十次,程序会模拟抽卡过程并显示抽到的角色或武器。
摘要由CSDN通过智能技术生成