?小游戏?

news/2025/1/3 6:50:21/
#include <iostream>
#include <windows.h>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{/*开始教程*/ system("title Brizza ");system("color 0f");Sleep(50);system("color 1f");Sleep(50);system("color 2f");Sleep(50);system("color 3f");Sleep(50);system("color 4f");Sleep(50);system("color 5f");Sleep(50);system("color 6f");Sleep(50);system("color 7f");Sleep(50);system("color 8f");Sleep(50);cout<<"欢迎来到Brizza    3.0.34.251版本"<<endl;Sleep(1000);cout<<"你的名字是";char name[1];cin>>name;cout<<"欣欣助理:你好";Sleep(250);cout<<name<<",欢迎来到当铺人生"<<endl; Sleep(500);cout<<"欣欣助理:这是2000¥开店资助费"<<endl;Sleep(500); long long break1=0;long long break2=0;long long int xq=0;/*个人变量*/long long int jinqian=2000; long long int shengwang=0; long long int xueshi=0;long long int defen=1000; long long int sccp=rand()%10000;//产品 /*开始当铺*/long long kai_zuhe[100000];for (char kai=0;kai<=1;kai++){for (long long int day=1;day>=1;day++){xq++;if (xq==8){xq=1;}if (jinqian==0){cout<<"你没钱了"<<endl;cout<<"Game over"<<endl;break1=90;break;}cout<<"------------------------"<<endl;cout<<"1.开店"<<endl;cout<<"2.升级角色"<<endl;cout<<"3.活动"<<endl;cout<<"4.开挂"<<endl;if (xq==5&&defen>=500){Sleep(500);system("color 0f");Sleep(50);system("color 1f");Sleep(50);system("color 2f");Sleep(50);system("color 3f");Sleep(50);system("color 4f");Sleep(50);system("color 5f");Sleep(50);system("color 6f");Sleep(50);system("color 7f");Sleep(50);system("color 8f");Sleep(50);cout<<"今天有拍卖会"<<endl; } cout<<"你的选择是:";cin>>kai_zuhe[kai];		Sleep(500);if (kai_zuhe[kai]==1){Sleep(500); cout<<"第"<<day<<"天"<<endl;cout<<"星期"<<xq<<endl;Sleep(500);long long q1=2;if (shengwang>=10){q1=3;}if (shengwang>=30){q1=5;}if (shengwang>=60){q1=6;}if (shengwang>=100){q1=9;}if (shengwang>=150){q1=10;}for (int q=1;q<=q1;q++){ if (jinqian<=5000){srand((int)time(0));long long huayu=rand()%5; cout<<"卖家:";if (huayu==0){cout<<"........随你......"<<endl;}if (huayu==1){cout<<"帮我看看,你想要的话,开个价吧"<<endl; }if (huayu==2){cout<<"这是个好东西,对你是有用的"<<endl; }if (huayu==3){cout<<"我这里有个好东西你看看,你保证会喜欢上它"<<endl;}if (huayu==4){cout<<"每个人都不好过,多点...多点..."<<endl;} if (huayu==5){cout<<"我给你说,这个其他家都急着抢呢"<<endl;}Sleep(500);long long wu=rand()%1000; cout<<"估价:"<<wu<<endl;Sleep(500);cout<<"你的定价是:";long ding;cin>>ding;Sleep(500);if (ding>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"你的定价是:";long ding3;cin>>ding3;if (ding3<=jinqian){long long dd=wu*0.8;if (ding3>=dd){cout<<"卖家:嗯...我想我能接受"<<endl;jinqian-=ding3; Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding3<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding3*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"卖家看你迟迟不说话,悄悄地走了"<<endl; shengwang-=1;defen+=10;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=2;defen+=10;}}}}}if (ding<=jinqian){long long dd=wu*0.8;if (ding>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding<<endl;long long int mai,jg=ding*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (jinqian>=10000&&jinqian<=200000){srand((int)time(0));long long huayu=rand()%5; cout<<"卖家:";if (huayu==0){cout<<"........随你......"<<endl;}if (huayu==1){cout<<"帮我看看,你想要的话,开个价吧"<<endl; }if (huayu==2){cout<<"这是个好东西,对你是有用的"<<endl; }if (huayu==3){cout<<"我这里有个好东西你看看,你保证会喜欢上它"<<endl;}if (huayu==4){cout<<"每个人都不好过,多点...多点..."<<endl;} if (huayu==5){cout<<"我给你说,这个其他家都急着抢呢"<<endl;}Sleep(500);long long wu=rand()%7000; cout<<"估价:"<<wu<<endl;Sleep(500);cout<<"你的定价是:";long ding;cin>>ding;Sleep(500);if (ding>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"你的定价是:";long ding3;cin>>ding3;if (ding3<=jinqian){long long dd=wu*0.8;if (ding3>=dd){cout<<"卖家:嗯...我想我能接受"<<endl;jinqian-=ding3; Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding3<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding3*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"卖家看你迟迟不说话,悄悄地走了"<<endl; shengwang-=1;defen+=10;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (ding<=jinqian){long long dd=wu*0.8;if (ding>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding<<endl;long long int mai,jg=ding*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (jinqian>=500000){srand((int)time(0));long long huayu=rand()%5; cout<<"卖家:";if (huayu==0){cout<<"........随你......"<<endl;}if (huayu==1){cout<<"帮我看看,你想要的话,开个价吧"<<endl; }if (huayu==2){cout<<"这是个好东西,对你是有用的"<<endl; }if (huayu==3){cout<<"我这里有个好东西你看看,你保证会喜欢上它"<<endl;}if (huayu==4){cout<<"每个人都不好过,多点...多点..."<<endl;} if (huayu==5){cout<<"我给你说,这个其他家都急着抢呢"<<endl;}Sleep(500);long long wu=rand()%120000; cout<<"估价:"<<wu<<endl;Sleep(500);cout<<"你的定价是:";long ding;cin>>ding;Sleep(500);if (ding>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"你的定价是:";long ding3;cin>>ding3;if (ding3<=jinqian){long long dd=wu*0.8;if (ding3>=dd){cout<<"卖家:嗯...我想我能接受"<<endl;jinqian-=ding3; Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding3<<endl;long long int mai,jg=ding3*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding3*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;Sleep(500);cout<<"卖家看你迟迟不说话,悄悄地走了"<<endl; shengwang-=1;defen+=10;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}if (ding<=jinqian){long long dd=wu*0.8;if (ding>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding<<endl;long long int mai,jg=ding*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding*1.4){Sleep(500);cout<<"买家:你太黑了,我不要了"<<endl;cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:不可能,我建议你不要少于"<<dd<<"¥"<<endl; Sleep(500);cout<<"卖家:你再看看"<<endl;long long ding2;cin>>ding2;if (ding2>jinqian){cout<<"你没有这么多钱"<<endl;}if (ding2<=jinqian){if (ding2>=dd){cout<<"卖家:嗯...我想我能接受"<<endl; jinqian-=ding2;Sleep(500);cout<<"交易成功,你现在有"<<jinqian<<"¥"<<endl;shengwang+=2;defen+=10;Sleep(500);cout<<"买家:我要买你的东西,这个多少钱"<<endl;Sleep(500);cout<<"进价:"<<ding2<<endl;long long int mai,jg=ding2*1.4;cout<<"建议不要高于"<<jg<<endl;cout<<"你的卖价是:";cin>>mai;if (mai>ding2*1.4){Sleep(500); cout<<"买家:你太黑了,我不要了"<<endl;Sleep(500);cout<<"交易失败"<<endl;shengwang-=1;defen+=10; }else {Sleep(500);cout<<"买家:很高兴和你交易"<<endl; cout<<"交易成功"<<endl;shengwang+=2;jinqian+=mai;defen+=10;cout<<"你现在有"<<jinqian<<"¥"<<endl; }}else {cout<<"卖家:我想我们没法谈生意了"<<endl;Sleep(500);cout<<"交易失败,你还有"<<jinqian<<"¥"<<endl; shengwang-=1;defen+=10;}}}}}}}if (kai_zuhe[kai]==2){if (kai_zuhe[kai]==2){Sleep(500);cout<<"个人信息:"<<endl;cout<<"姓名"<<name<<endl;cout<<"金钱:"<<jinqian<<endl;cout<<"得分:"<<defen<<endl;cout<<"1.声望:"<<shengwang<<endl;cout<<"2.学识:"<<xueshi<<endl;if (defen>300){cout<<"3.工厂"<<endl; }cout<<"123.说明"<<endl; cout<<"你要升级的是:";int sj;cin>>sj;if (sj==1){Sleep(500);cout<<"你现在声望是:"<<shengwang<<endl;cout<<"每升1要100¥"<<endl;cout<<"你要升多少级:";long long int swsj;cin>>swsj;if (swsj*100>jinqian){Sleep(500);cout<<"你没这么多钱"<<endl; }else {jinqian-=swsj*100;shengwang+=swsj;Sleep(500);cout<<"升级成功,";cout<<"你现在的声望是:"<<shengwang<<endl; }}if (sj==2){Sleep(500);cout<<"你现在的学识是:"<<xueshi<<endl;cout<<"每升1要50¥"<<endl;cout<<"你要升:";long long int sxs;cin>>sxs;if (sxs*50>jinqian){Sleep(500);cout<<"你没这么多钱"<<endl; }else {jinqian-=sxs*50;xueshi+=sxs;Sleep(500);cout<<"升级成功,";cout<<"你现在的学识是:"<<xueshi<<endl; }}if (sj==123){Sleep(500);cout<<"金钱:用来升级,购买物品"<<endl;cout<<"声望:用来增加顾客"<<endl; cout<<"学识:用来辨别真假,获得金钱和声望"<<endl; cout<<"得分:用来解锁活动"<<endl; if (defen>300){cout<<"工厂:获得额外金钱"<<endl;}} } }if (kai_zuhe[kai]==3){Sleep(500); int dk1=0;int dk2=0;int dk3=0;int huodongjinru=0;if (defen>=500){dk1=1;}if (defen>=1000){dk2=1;}if (defen>=1000){dk3=1;}cout<<"你解锁的活动有:"<<endl;if (dk1==0){cout<<"你没有解锁任何活动"<<endl; huodongjinru=1;}if (dk1==1&&xq==5){cout<<"1.拍卖场"<<endl; }if (dk2==1){cout<<"2.工厂"<<endl; }if (dk3==1){cout<<"3.其他"<<endl; }if (huodongjinru==0){Sleep(500);cout<<"你要进行的活动是:";long xzhd;cin>>xzhd;if (xzhd==1&&xq==5){srand((int)time(0));Sleep(500);	long wu[5],s;wu[0]=rand()%jinqian;wu[1]=rand()%jinqian;wu[2]=rand()%jinqian;wu[3]=rand()%jinqian;wu[4]=rand()%jinqian;//cout<<wu[0]<<endl;//cout<<wu[1]<<endl;//cout<<wu[2]<<endl;//cout<<wu[3]<<endl;//cout<<wu[4]<<endl;cout<<"1."<<wu[0]<<"¥"<<endl;cout<<"2."<<wu[1]<<"¥"<<endl;cout<<"3."<<wu[2]<<"¥"<<endl;cout<<"4."<<wu[3]<<"¥"<<endl;cout<<"5."<<wu[4]<<"¥"<<endl;cout<<"购买的物品价格越大,获利越大"<<endl; cout<<"你要购买一个物品:";long buywu;cin>>buywu;Sleep(500);cout<<"---------拍卖开始!!!-----------"<<endl;/*拍卖初始化*/ if (wu[buywu]<=500){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%3;if (s>=2){break;}}}if (wu[buywu]<=3000&&wu[buywu]>500){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%10;if (s>=6){break;}}}if (wu[buywu]<=10000&&wu[buywu]>3000){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%20;if (s>=10){break;}}}if (wu[buywu]>10000){for (int a=0;a<=100;a++){srand((int)time(0));s=rand()%40;if (s>=30){break;}}}long long int a2=wu[buywu-1],a4=0;					/*真正开始*/	for (int a1=0;a1<=s;a1++){srand((int)time(0));			Sleep(750);cout<<"顾客:我出"<<a2<<"¥"<<endl;a4=a2;long long int a3=rand()%10000;a2+=a3;}jinqian+=a4;Sleep(1000);cout<<"-------拍卖报告---------"<<endl;cout<<"拍买获得:"<<a4-wu[buywu-1]<<"¥"<<endl; cout<<"现有金钱:"<<jinqian<<endl;} if (xzhd==2){Sleep(500);srand((int)time(0));long long int sccp1=rand()%1000;sccp+=sccp1; cout<<"工厂可以持续生产产品"<<endl; Sleep(500);cout<<"你一共有"<<sccp<<"个产品"<<endl;Sleep(500);cout<<"是否出售:1.出售 2.不出售"<<endl; int cs;cin>>cs;if (cs==1) {long long int sccp3=sccp*100;jinqian+=sccp3;Sleep(500);cout<<"你现在有:"<<jinqian<<"¥"<<endl; }}if (xzhd==3){Sleep(500);cout<<"1.剪子包袱锤"<<endl;Sleep(500);cout<<"2.比大小"<<endl;Sleep(500);cout<<"你的选择是:";long xzhd;cin>>xzhd;if (xzhd==1){Sleep(500);cout<<"1.剪子"<<endl;Sleep(500);cout<<"2.包袱"<<endl;Sleep(500);cout<<"3.锤"<<endl;cout<<"你要出:"; long long int zzbf;cin>>zzbf;srand((int)time(0));long long int zzbf1=rand()%2;if (zzbf1==0&&zzbf==1){Sleep(500);cout<<"对手:剪子"<<endl; Sleep(500);cout<<"平局"<<endl; Sleep(500);}if (zzbf1==0&&zzbf==2){Sleep(500);cout<<"对手:剪子"<<endl; Sleep(500);cout<<"赢了"<<endl;Sleep(500);}if (zzbf1==0&&zzbf==3){Sleep(500);cout<<"对手:剪子"<<endl; Sleep(500);cout<<"输了"<<endl;Sleep(500);}if (zzbf1==1&&zzbf==1){Sleep(500);cout<<"对手:包袱"<<endl; Sleep(500);cout<<"赢了"<<endl; Sleep(500);}if (zzbf1==1&&zzbf==2){Sleep(500);cout<<"对手:包袱"<<endl; Sleep(500);cout<<"平局"<<endl;Sleep(500);}if (zzbf1==1&&zzbf==3){Sleep(500);cout<<"对手:包袱"<<endl; Sleep(500);cout<<"输了"<<endl;Sleep(500);}if (zzbf1==2&&zzbf==1){Sleep(500);cout<<"对手:锤"<<endl; Sleep(500);cout<<"输了"<<endl; Sleep(500);}if (zzbf1==2&&zzbf==2){Sleep(500);cout<<"对手:锤"<<endl; Sleep(500);cout<<"赢了"<<endl;Sleep(500);}if (zzbf1==2&&zzbf==3){Sleep(500);cout<<"对手:锤"<<endl;Sleep(500); cout<<"平局"<<endl;Sleep(500); }} srand((int)time(0));long long int ccs=rand()%100;if (xzhd==2){for (int a=1;a>0;a++){Sleep(500);long long int cscs;cin>>cscs;if (cscs>ccs){Sleep(500);cout<<"大了"<<endl;}if (cscs<ccs){Sleep(500);cout<<"小了"<<endl;}if (cscs==ccs){Sleep(500);cout<<"你猜对了"<<endl;break; }}} }}}if (kai_zuhe[kai]==4){break2=90;break; }}if (break1==90){break;}}if (break2==90){for (int a=1;a>=0;a+=0){long long int hihi=rand()%10000;for (int a=1;a<=90;a+=1){srand((int)time(0));Sleep(50);cout<<"顾客:我出"<<hihi<<"¥"<<endl;long long int a3=rand()%10000;hihi+=a3;}jinqian+=hihi; Sleep(1500);cout<<"-------------------------"<<endl;cout<<"你有"<<jinqian<<"¥"<<endl;cout<<"-------------------------"<<endl;Sleep(2000);}}  	return 0;
}

中间剪子包袱锤故意的


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

相关文章

游戏有哪些分类?

在生活中我们喜欢用游戏来打发无聊的时间&#xff0c;在玩游戏的同时&#xff0c;也欣赏着游戏音乐&#xff0c;你玩过多少款游戏呢&#xff1f;这些游戏都属于什么样的分类你知道吗&#xff1f;下面小编来为大家普及游戏中的那些分类。 休闲益智类 休闲益智类是生活中最常见的…

Android-小游戏

Android&#xff1a;打地鼠游戏 前端界面(布局文件) &#xff1a;TableLayout(表格布局)TableRow(行)TextView(文本框)ImageView(图片框) java代码&#xff1a;Handler(消息处理)Runnable(建子线程)setOnClickListener(开始结束按钮监听事件)CountDownTimer(倒计时类) this.set…

游戏类型分类

游戏的类型&#xff1a; ACT 动作游戏&#xff08;Action Game&#xff09; 玩家通过控制游戏人物&#xff0c;使用各种武器消灭敌人&#xff0c;从而过关的游戏&#xff0c;不求任何故事情节。 1. 动作 2. 平台动作 3. 动作射击 PTG格斗游戏 玩家操作各种…

laya oppo小游戏发布相关问题

1、发布失败&#xff0c;提示primordials is not defined 解释&#xff1a;Node版本过高&#xff0c;需要换成低版本&#xff08;官方建议换成8.x的版本&#xff0c;自己卸载了之前的node.js&#xff0c;重新安装一个8.x版本的就行了&#xff09; 建议卸载原来的node&#xff…

小角色游戏-RPG游戏

一. 问题描述 1.功能描述&#xff1a;几乎所有的RPG游戏&#xff08;一种源自《龙与地下城》的游戏类型&#xff09;在进入游戏时都会让用户自己来创建自己喜欢的角色。本次上机要求编写一个简化的创建游戏角色的程序。 2.游戏角色应有的属性本题目要求的游戏角色应有以下属性&…

游戏分类Game Categories

wy游学游戏分类 以下内容均为转载&#xff0c;资料全部来自网易游学 动作类&#xff08;ACT/ARPG&#xff09; 动作类游戏是强调操作对抗与博弈&#xff0c;并以动作操控达成特定目标的游戏&#xff0c;如ACT游戏及APRG游戏。 ACT游戏 动作游戏是一种广义上的游戏类型。以“动…

手机游戏游戏隐私政策

手机游戏隐私政策 更新时间&#xff1a;2021年10月26日 生效时间&#xff1a;2021年10月08日 实丰&#xff08;深圳&#xff09;网络科技有限公司是本游戏的开发商&#xff0c;已授权深圳市奇兔软件技术有限公司&#xff08;以下简称“我们”&#xff09;作为本游戏的运营商。…

手机游戏的简介和分类

其实说的简单一点&#xff0c;手机游戏就是能在手机上操作并进行的游戏。在早期的手机游戏中&#xff0c;“俄罗斯方块”与“贪吃蛇”的风光相信是不需要我在向大家介绍的了。 但是随着科技水平的进步&#xff0c;广大的手机用户早已不能满足与现状了&#xff0c;这个时候各种类…