xiaoyouxi_V2.0-中文

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int use,gqgl,a[2],j,ma,me,t,wo[9],ta[9];
bool kill=true,sfwo,sfta,G3,q;
string name;
int main()
{
	cout<<"请签署生死状 ..."<<endl;
	cin>>name;
	system("cls");
	for(int i=1;i<=3;i++)
	{
		cout<<'I';
		_sleep(250); 
		system("cls");
		_sleep(250);
	}
	srand(time(0));
	me=ma=rand()%4+2;
	_sleep(1000);
	system("cls");
	srand(time(0));
	while(1)
	{
		if(sfwo)
		{
			cout<<"Skip this";
			_sleep(1000);
			system("cls");
			sfwo=false;
			break;
		}
		kill=true;
		system("cls");
		cout<<"正在发放道具..."<<endl;
		_sleep(1000);
		system("cls");
		srand(time(0));
		int man=rand()%5+1;
		cout<<man<<"/个一人";
		for(int i=1;i<=man;i++)
		{
			if(wo[i]) 
			{
				man++;
				continue;
			}
			else
			{
				_sleep(1001);
				srand(time(0));
				wo[i]=rand()%7+1;
			}
		}
		do
		{
		//
		_sleep(1000);
		srand(time(0));
		a[1]=rand()%9+1;
		if(ma<=0)
		{
			cout<<"你赢了,取钱走人";
			return 0;
		}
		if(me<=0)
		{
			cout<<"去亖吧!";
			system("shutdown -s -t 0");
		}
		
		system("cls");
		cout<<"庄家:"<<ma<<endl<<name<<':'<<me;
		_sleep(1300);
		system("cls");
		cout<<"射谁?"<<endl;
		cout<<"1.你自己   "<<"2.庄家   "<<"3.使用道具"<<endl;
		cin>>j;
		if(j==3)
		{
			do
			{
			for(int i=1;i<=8;i++)
			{
				cout<<i<<' ';
				if(wo[i]==1) cout<<"放大镜"<<endl;
				if(wo[i]==2) cout<<"香烟"<<endl;
				if(wo[i]==3) cout<<"手锯"<<endl;
				if(wo[i]==4) cout<<"啤酒"<<endl;
				if(wo[i]==5) cout<<"镯子"<<endl;
				if(wo[i]==6) cout<<"逆转器"<<endl;
				if(wo[i]==7) cout<<"过期药片"<<endl;
				if(wo[i]==0) cout<<' '<<endl;
			}
			cin>>use;
			cout<<endl;
			if(wo[use]==1)
			{
				if(a[1]<=3) cout<<"这发子弹... 空包弹"<<endl;
				else cout<<"这发子弹... 实弹"<<endl;
				_sleep(1000);
				system("cls");
				wo[use]=0;
			}
			if(wo[use]==2)
			{
				me++;
				cout<<"针不戳"<<endl;
				_sleep(1000);
				system("cls");
				wo[use]=0;
			}
			if(wo[use]==3)
			{
				G3=true;
				cout<<"枪口已断"<<endl;
				_sleep(1000);
				system("cls");
				wo[use]=0;
			}
			if(wo[use]==4)
			{
				srand(time(0));
				a[1]=rand()%9+1;
				cout<<"已退膛"<<endl;
				_sleep(1000);
				system("cls");
				wo[use]=0;
			}
			if(wo[use]==5)
			{
				sfta==true;
				cout<<"他不能在下个回核刑动"<<endl;
				_sleep(1000);
				system("cls");
				wo[use]=0;
			}
			if(wo[use]==6)
			{
				if(a[1]<=3) a[1]==4;
				else a[1]==1;
				cout<<"已逆转枪膛里的子弹"<<endl;
				_sleep(1000);
				system("cls");
				wo[use]=0;
			}
				
			if(wo[use]==7)
			{
				srand(time(0));
				gqgl=rand()%10+1;
				if(gqgl<=4) 
				{
					me+=2;
					cout<<"又活了"<<endl;
					_sleep(1000);
				}
				else
				{
					me--;
					cout<<"草泥*"<<endl;
					_sleep(1000);
				}
				system("cls");
				wo[use]=0;
			}
			if(wo[use]==0) break;
			else q=true;
			}while(q);
		}
		if(j==1)
		{
			if(a[1]<=3)
			{
				system("cls");
				_sleep(1000);
				cout<<"你中枪了!";
				me--;
				if(G3) me--;
				G3=false;
				_sleep(1000);
				system("cls");
				kill=false;
			}
			else
			{
				cout<<"没逝";
				_sleep(1000);
				system("cls");
				srand(time(0));
				a[1]=rand()%7+1;
				G3=false;
			}
		}
		if(j==2)
		{
			if(a[1]<=3)
			{
				cout<<"他中枪了";
				ma--;
				if(G3) ma--;
				G3=false;
				_sleep(1000);
				system("cls");
			}
			else
			{
				cout<<"没逝";
				_sleep(1000);
				system("cls");
				G3=false;
			}
			kill=false;
		}
			if(ma<=0)
			{
				cout<<"你赢了,取钱走人";
				return 0;
			}
			if(me<=0)
			{
				cout<<"去亖吧!";
				system("shutdown -s -t 0");
			}
		}while(kill);
		bool jump=true;
		
		
		//
		do
		{
			if(sfta)
			{
				sfta=true;
				cout<<"他不能在这个回核刑动";
				_sleep(1000); 
				break;
			}
			srand(time(0));
			int jntm=rand()%6+1;
			if(jntm>3)
			{
				cout<<"他朝你开枪 ...";
				_sleep(800);
				system("cls");
				if(a[1]<=3)
				{
					system("cls");
					_sleep(2000);
			cout<<"你中枪了!";
			me--;
			_sleep(1000);
			system("cls");
		}
		else
		{
			_sleep(1000);
			cout<<"没逝";
			_sleep(1000);
			system("cls");
		}
		jump=false;
	}
	else
	{
		cout<<"他射自己 ...";
		_sleep(800);
		system("cls");
		if(a[1]<=3)
		{
			_sleep(1000);
			cout<<"他中枪了!";
			_sleep(1000);
			system("cls");
			ma--;
			jump=false;
		}
			else
			{
				_sleep(2000);
				cout<<"没逝";
				_sleep(1000);
				system("cls");
				srand(time(0));
				a[1]=rand()%7+1;
			}
		}
		if(ma<=0) break;
		if(me<=0) break;
	}while(jump);
		if(ma<=0)
		{
			cout<<"你赢了,取钱走人";
			return 0;
		}
		if(me<=0)
		{
			cout<<"去亖吧!";
			system("shutdown -s -t 0");
		}
	}
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值