//呵呵,我又来编关于mc的游戏!!这次有跑酷、狼人杀、杀手更新。 之后会更新更多内容!
#include <bits/stdc++.h>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <Windows.h>
#include <conio.h>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<windows.h>
#include <string.h>
#include <stdlib.h>
using namespace std;
void time4()
{
Sleep(400);
}
void brc()
{
system("cls");
int jy=1;
int sy=3;
srand((int)time(0));
int n=rand()%15+1;
cout<<" 你是"<<n<<"号"<<endl;
cout<<" 正在分配身份"<<endl;
Sleep(1500);
int m[20];
for(int i=1;i<=15;i++)
m[i]=1;
int s[20]={0};
int yy[20]={0};
int l=0,w=0,j=0,p=0;
for(int i=1;i<=15;i++)
{
do
{
int a=rand()%4+1;
if(a==1&&l<2)
{
l++;
s[i]=1;
}
else if(a==2&&w<2)
{
w++;
s[i]=2;
}
else if(a==4&&p<1)
{
p++;
s[i]=4;
}
else if(a==3&&j<10)
{
j++;
s[i]=3;
}
}
while(s[i]==0);
}
if(s[n]==1)
cout<<" 你是>>him的手下<<"<<endl;
else if(s[n]==2)
cout<<" 你是>>mc·预言家<<"<<endl;
else if(s[n]==3)
cout<<" 你是>>mc·平民<<"<<endl;
else
cout<<" 你是>>女mc·巫<<"<<endl;
cout<<" 游戏将在5秒后开始"<<endl;
Sleep(5000);
int c=15;
int f=0,flag=0;
int day=1;
int lr;
int tp[20]={0};
do
{
lr=0;
system("cls");
cout<<" 第"<<day<<"晚开始"<<endl;
int x;
for(int i=1;i<=15;i++)
{
if(i==n&&m[n]==1)
{
if(s[n]==1)
{
cout<<" 你是him的手下"<<endl;
for(int j=1;j<=15;j++)
if(m[j]==1&&s[j]!=1)
cout<<j<<" ";
cout<<endl;
cout<<" 你选择杀掉"<<endl;
int a;
cin>>a;
m[a]=0;
cout<<endl;
cout<<" him的手下杀了"<<a<<"号";
if(s[a]==1)
cout<<"(杀手)"<<endl;
else if(s[a]==2)
cout<<"(预言家)"<<endl;
else if(s[a]==3)
cout<<"(平民)"<<endl;
else
cout<<"(女巫)"<<endl;
c--;
}
else if(s[n]==2)
{
cout<<" 你是预言家"<<endl;
cout<<" ";
for(int j=1;j<=15;j++)
if(m[j]==1)
cout<<j<<" ";
cout<<endl;
cout<<" 你选择预言谁的身份"<<endl;
int a;
cin>>a;
if(s[a]==1)
{
cout<<" "<<a<<"号是him的手下,请注意"<<endl;
Sleep(1000);
}
else
cout<<" "<<a<<"号是平民"<<endl;
}
}
else if(s[i]==1&&m[i]==1)
{
int a;
do
{
a=rand()%15+1;
}
while(a==i||m[a]==0||s[a]==1);
cout<<" him的手下杀掉了"<<a<<"号";
if(s[a]==1)
cout<<"(him的手下)"<<endl;
else if(s[a]==2)
cout<<"(预言家)"<<endl;
else if(s[a]==3)
cout<<"(平民)"<<endl;
else
cout<<"(女巫)"<<endl;
m[a]=0;
c--;
}
else if(s[i]==2)
{
if(flag==0||m[flag]==0)
{
int a;
do
{
a=rand()%15+1;
}
while(a==i||m[a]==0);
if(s[a]==1)
yy[a]=1;
else if(s[a]==3)
yy[a]=3;
}
}
else if(s[i]==4)
{
f=0;
while(f==0)
{
int a;
a=rand()%2+1;
if(a==1)
{
if(sy>0)
{
sy--;
f=1;
int b;
do
{
b=rand()%15+1;
b=rand()%15+1;
}
while(b==i||m[b]==0);
m[b]=0;
cout<<" 女巫毒死了"<<b<<"号";
if(s[b]==1)
cout<<"(him的手下)"<<endl;
else if(s[b]==2)
cout<<"(预言家)"<<endl;
else if(s[b]==3)
cout<<"(平民)"<<endl;
c--;
}
}
else if(a==2&&day>1)
{
if(jy>0)
{
jy--;
f=1;
int b;
do
{
b=rand()%15+1;
}
while(b==i||m[b]==1);
c++;
cout<<" 女巫复活了"<<b<<"号"<<endl;
m[b]=1;
}
}
}
}
}
if(s[n]==4)
{
cout<<" 你是女巫"<<endl;
cout<<"存活状况:"<<endl;
for(int j=1;j<=15;j++)
if(m[j]==1)
cout<<j<<" ";
cout<<endl;
cout<<" 你选择 1.* 杀 *还是 2.* 救 *"<<endl;
int a,f=0;
while(f==0)
{
cin>>a;
if(a==1)
{
if(sy>0)
{
sy--;
f=1;
cout<<" 你选择了杀人"<<endl;
for(int i=1;i<=15;i++)
if(m[i]==1)
cout<<i<<" ";
cout<<endl;
int b;
cin>>b;
if(s[b]==1)
cout<<"(杀手)"<<endl;
else if(s[b]==2)
cout<<"(预言家)"<<endl;
else if(s[b]==3)
cout<<"(平民)"<<endl;
else
cout<<"(女巫)"<<endl;
m[b]=0;
c--;
}
else
{
cout<<">>毒药<<不足"<<endl;
}
}
else if(a==2)
{
if(jy>0)
{
jy--;
f=1;
cout<<"你选择了复活"<<endl;
cout<<"阵亡名单:"<<endl;
for(int i=1;i<=15;i++)
if(m[i]==0)
cout<<i<<"号,身份:"<<s[i]<<" "<<endl;;
int b;
cin>>b;
m[b]=1;
c++;
}
else
{
cout<<">>复活药水<<不足"<<endl;
}
}
}
}
Sleep(1000);
double p[20]={0};
cout<<" 第"<<day<<"晚结束"<<endl;
cout<<endl;
if(m[n]==0)
{
cout<<" 你已经>>死<<了";
break;
}
cout<<" 存活:"<<endl;
cout<<" ";
for(int i=1;i<=15;i++)
if(m[i]==1)
cout<<i<<" ";
cout<<endl;
cout<<" 请投票...."<<endl;
for(int i=1;i<=15;i++)
{
if(i==n&&m[n]==1)
{
cout<<endl;
cout<<" 你选择投几号"<<endl;
int a=99;
while(a==99)
{
cin>>a;
if(a==99)
for(int i=1;i<=15;i++)
if(m[i]==1)
cout<<" "<<i<<"."<<s[i]<<endl;
}
if(s[i]==3&&day>4)
p[a]+=1.5;
else
p[a]++;
cout<<endl;
cout<<" "<<i<<"->"<<a<<endl;
if(s[a]==3)
{
tp[a]=i;
}
}
else if(s[i]==1&&m[i]==1)
{
int a;
do
{
a=rand()%15+1;
}
while(m[a]==0||a==i||s[a]==1);
p[a]++;
cout<<" "<<i<<"->"<<a<<endl;
if(s[a]==3)
{
tp[a]=i;
}
}
else if(s[i]==2&&m[i]==1)
{
if(flag!=0)
{
p[f]++;
cout<<" "<<i<<"->"<<flag<<endl;
}
else
{
int a;
do
{
a=rand()%15+1;
}
while(m[a]==0||a==i||yy[a]==3);
p[a]++;
if(s[a]==3)
{
tp[a]=i;
}
cout<<" "<<i<<"->"<<a<<endl;
}
}
else if(s[i]==3&&m[i]==1)
{
if(tp[i]==0)
{
int a;
do
{
a=rand()%15+1;
}
while(m[a]==0||a==i);
p[a]++;
cout<<" "<<i<<"->"<<a<<endl;
}
else
{
if(m[tp[i]]==1)
{
p[tp[i]]++;
cout<<" "<<i<<"->"<<tp[i]<<endl;
}
else
{
int a;
do
{
a=rand()%15+1;
}
while(m[a]==0||a==i);
p[a]++;
cout<<" "<<i<<"->"<<a<<endl;
}
}
}
else if(s[i]==4&&m[i]==1)
{
int a;
do
{
a=rand()%15+1;
}
while(m[a]==0||a==i);
p[a]++;
cout<<" "<<i<<"->"<<a<<endl;
}
}
system("cls");
cout<<" 投票情况:"<<endl;
for(int i=1;i<=15;i++)
if(m[i]==1)
cout<<" "<<i<<"号"<<" 票数:"<<p[i]<<endl;
int sw,max=-100;
for(int i=1;i<=15;i++)
{
if(p[i]>max)
{
sw=i;
max=p[i];
}
}
m[sw]=0;
cout<<" "<<sw<<"死了"<<endl;
c--;
cout<<" "<<sw<<"号的身份是";
if(s[sw]==1)
cout<<"杀手"<<endl;
else if(s[sw]==2)
cout<<"预言家"<<endl;
else if(s[sw]==3)
cout<<"平民"<<endl;
else
cout<<"女巫"<<endl;
day++;
if(s[n]!=1)
{
for(int i=1;i<=15;i++)
if(s[i]==1&&m[i]==1)
lr=1;
}
else
{
if(s[n]==1&&c==2)
lr=0;
}
system("pause");
cout<<endl;
}
while(m[n]==1&&c>1);
cout<<" 游戏结束"<<endl;
}
int main(){
printf("请选择你的类型\n1.安卓 2.ios 3.windows7\n");
int a;
cin>>a;
if (a==1 || a==3){
cout<<" mc·游戏库\n";
cout<<"===============================================================\n";
cout<<endl;
cout<<endl;
cout<<" 请问您要游玩什么:\n1.单人游戏\n2.多人游戏\n3.主播模式(暂未开启)\n4.自创模式(暂未开启)\n5.故事模式(暂未开启)\n6.作者游戏经历(暂未开启)\n7.了解游戏\n8.了解作者\n";
cout<<endl;
cout<<endl;
cout<<"===============================================================\n";
time4();
int b;
cin>>b;
if (b==1){
cout<<" mc·游戏库\n";
cout<<"===============================================================\n";
cout<<endl;
cout<<endl;
cout<<"1.跑酷\n2.解密(暂未开启)\n3.创造一个世界\n";
cout<<endl;
cout<<endl;
cout<<"===============================================================\n";
int c;
cin>>c;
if(c==1){
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"欢迎来到“正常的跑酷”!\n第一关:树叶冲击\n";
cout<<"1.冲过树叶门 2.先等等\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int d;
cin>>d;
if(d==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你*啊,你成功的被下面的命令方块传送在了半空中。\n获得成就:玩家(小白鼠)从高处摔了下来。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(d==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"聪明,你成功摆脱了传送在半空的命运。\n:(\n现在,你要怎么办:\n";
cout<<"1.走走虚空(前面) 2.走走虚空(后面)\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int e;
cin>>e;
if (e==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你竟然找到了作者的制作箱子,在里面发现了命令方块和隐形方块,\n可是你在回来的时候脚滑(奸笑)。\n";
cout<<"获得成就:1.找到了没卵用的东西 2.玩家(小白鼠)从高处摔了下来。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(e==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你成功的找到了隐形方块,你现在该怎么做:\n";
cout<<"1.直接走 2.边走边跳\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int f;
cin>>f;
if(f==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"作者在最后两格没搭隐形方块,你掉了下来。\n";
cout<<"获得成就:玩家(小白鼠)从高处摔了下来。\n";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(f==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你险些跳过了我设的坑(说漏嘴了)(奸笑),你来到了第二关:\n第二关:快乐跳跳\n";
cout<<"1.跳下去,看看我有没有在下面设下一关的入口 2.像个傻*一样,跳过去\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int g;
cin>>g;
if (g==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"呵呵哒,你掉了下去。这就是聪明反被聪明误。\n获得成就:1.聪明反被聪明误 2.玩家(小白鼠)从高处摔了下来。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(g==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你跳了过去......是不是感觉很惊讶?这就是聪明反被聪明误反被聪明误。不过,你的智商.....(手动滑稽)\n";
cout<<"你来到了第三关:\n第三关:快乐降降\n";
cout<<"1.跳下去,看看我有没有在下面设下一关的入口 2.像个傻*一样,跳过去 3.踩一下一旁的压力板\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int h;
cin>>h;
if(h==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你还这么做啊,不过,你还是死了。\n获得成就:1.思维单一 2.玩家(小白鼠)从高处摔了下来。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(h==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"请不要用套路来解决这关。\n获得成就:1.喜欢套套路 2.玩家(小白鼠)从高处摔了下来。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(h==3){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你踩了压力板,重置了重生点。\n现在,你要干嘛:\n1.跳下去 2.跳过去。";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int i;
cin>>i;
if(i==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你竟发现下面铺满了隐形方块,在中间,你又发现一个压力板,你现在要干嘛?\n1.踩下去 2.继续跳下去\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int j;
cin>>j;
if(j==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你死了。\n获得成就:玩家(小白鼠)掉出了世界。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(j==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你跳了下去,竟来到了第四关!\n第四关:信仰之跃\n1.按规矩跳下去 2.不按规矩跳下去\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int k;
cin>>k;
if (k==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你跳了下去,发现前面有道门,你正要走过去时,铁门说:“你没有钥匙。”\n然后,你死了!\n获得成就:玩家被铁门杀死。";
return 0;
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
}
else if(k==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你死了。\n获得成就:玩家(小白鼠)从高处摔了下来。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
}
}
else if(i==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你竟然一跳,跳到了云层之上,在那里,写着:钥匙放置处。你一拿到钥匙,便到了第四关。\n第四关:信仰之跃\n1.按规矩跳下去 2.不按规矩跳下去\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int l;
cin>>l;
if(l==1){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你跳了下去,发现前面有道门,门说:“你拥有钥匙,可以进去了。”\n";
cout<<"你成功了,你成功通关了!\n获得成就:1级大脑(开发)\n";
cout<<endl;
cout<<endl;
cout<<"成功!!!\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(l==2){
cout<<" mc·跑酷\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"你死了。\n获得成就:玩家(小白鼠)从高处摔了下来。";
cout<<endl;
cout<<endl;
cout<<"结束...\n";
cout<<"-------------------------------------------------------\n";
return 0;
}
}
}
}
}
}
}
}
else if(c==2){
cout<<endl;
cout<<endl;
cout<<"欢迎来到“正常的解密”";
}
else if(c==3){
cout<<" mc·创造一个新的世界\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"请输入种子号:\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
int m;
cin>>m;
if(m==666){
cout<<" mc·创造一个新的世界\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"恭喜你,开启“特殊模式”:\n";
cout<<"本模式是him模式\n小心点!\n加载中......\n你进入了游戏,竟然一开始就是晚上!!\n你要怎么做:\n1.跑到草坪上 2.砍树\n";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
}
}
}
else if(b==2){
cout<<endl;
cout<<endl;
cout<<" mc·游戏库\n";
cout<<"===============================================================\n";
cout<<endl;
cout<<endl;
cout<<"1.狼人杀\n2.服务器(暂未开启)\n3.mc逗比杀手\n";
cout<<endl;
cout<<endl;
cout<<"===============================================================\n";
int c1;
cin>>c1;
if(c1==1){
srand((int)time(0));
char a='1';
while(1)
{
system("cls");
cout<<" 狼人杀1.0"<<endl;
cout<<"--------------------------------------------------------------------------------\n";
cout<<"1.开始游戏"<<endl;
cout<<"2.查看游戏规则"<<endl;
a=getch();
if(a=='1')
{
cout<<" 1. 15人场"<<endl;
cout<<" 2. 30人娱乐战(10猎人)<敬请期待>"<<endl;
cout<<"------------------------------------------------------------------------------\n";
a='2';
while(a=='2')
{
a=getch();
switch(a)
{
case '1':
brc();
break;
}
if(a=='1')
break;
}
if(a=='1')
break;
}
else if(a=='2')
{
cout<<"------------------------------------------------------------------------\n";
cout<<" mc·狼人杀\n";
cout<<"角色介绍:\n";
cout<<"him的手下:每当晚上的时候可使用杀人权杀掉一人"<<endl;//1
cout<<"mc·预言家:每天晚上可以知道一个人的身份"<<endl;//2
cout<<"mc·平民:无技能,当玩家是平民时,在第5天拥有1.5票的投票权"<<endl;//3
cout<<"mc·猎人:此身份仅限于30人娱乐局中,死亡后可带走一人"<<endl;
cout<<"投票细则:\n游戏中除了你以外全是由超级AI人工代替"<<endl;
cout<<"杀手不会杀掉朋友,但不包括投票环节"<<endl;
cout<<"预言家如果预言到杀手将一直对他投票,如果预言到平民将永远不会对他投票"<<endl;
cout<<"平民将投上一个晚上对他投票他的人"<<endl;
cout<<"********利用好超级AI游戏规则找出杀手**********"<<endl;
cout<<"------------------------------------------------------------------------\n";
system("pause");
}
}
}
else if(c1==3){
srand(time(NULL));
int b,p,x,c,d,e=0,f=0,g,h=0,i=1,j,l,m,n=5,o=0;
cout<<"********************************************\n";
cout<<" mc·杀手\n";
cout<<endl;
cout<<"********************************************\n";
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"********************************************\n";
cout<<" mc·杀手\n";
printf("选择你的mc杀手编号(1-5)\n");
cout<<endl;
cout<<"********************************************\n";
scanf("%d",&b);
printf("\n");
int a[6]={0,1,2,3,4,5},k[10]={0};
AA:while(n!=1)
{
if(i==1)
{
Sleep (1000);
cout<<"********************************************\n";
cout<<" mc·杀手\n";
cout<<endl;
printf("mc存活者:mc%d mc%d mc%d mc%d mc%d\n\n",a[1],a[2],a[3],a[4],a[5]);
cout<<endl;
cout<<"********************************************\n";
}
if(i==6) i=1;
if(a[i]==0)
{
i++;
continue;
}
Sleep(1000);
cout<<"********************************************\n";
cout<<" mc·杀手\n";
cout<<endl;
printf("轮到mc%d号\n",i);
cout<<endl;
cout<<"********************************************\n";
if(i==b)
{
Sleep(1000);
cout<<"********************************************\n";
cout<<" mc·杀手\n";
cout<<endl;
printf("选择你的目标:mc%d mc%d mc%d mc%d mc%d\n",a[1],a[2],a[3],a[4],a[5]);
cout<<endl;
cout<<"********************************************\n";
scanf("%d",&p);
}
else
do
p=rand()%5+1;
while(p!=i);
while(a[p]==0||p==i) p=rand()%5+1;
Sleep(1000);
printf("mc%d号选择了mc%d号\n",i,p);
Sleep(1000);
printf("mc%d号掷出了mc%d\n",i,c=rand()%6+1);
if(i>=c)
{
a[p]=0;
Sleep(1000);
printf("mc%d号杀死了mc%d号\n\n",i,p);
n--;
}
else {Sleep(1000); printf("mc%d号没有杀死目标\n\n",i);}
if(i==5&&a[p]==0)
{
if(rand()%3==1||rand()%3==2)
{
if(p==1&&f<=2)
{
Sleep(1000); printf("mc5号无视mc1号复活权\n");
Sleep(800); printf("直接将其mc杀死\n\n");
f=3;
}
if(p==2&&h==0)
{
Sleep(1000); printf("mc5号无视mc2号复活权\n");
Sleep(800); printf("直接将其mc杀死\n\n");
h=1;
}
if(p==3&&o==0)
{
Sleep(1000); printf("mc5号无视mc3号复活权\n");
Sleep(800); printf("直接将其mc杀死\n\n");
o=1;
}
}
}
if(a[1]==0)
{
if(f<=2)
{
Sleep(1000);
printf("mc1号使用复活权\n");
f++; n++; a[1]=1;
if(f==1)
{
do g=rand()%5+1;
while(a[g]==0||g==1);
Sleep(1000); printf("并随机诅咒了mc%d号\n",g);
Sleep(1000); printf("mc%d号死了\n\n",g);
a[g]=0; n--;
}
}
else a[1]=0;
}
if(a[2]==0&&h==0)
{
Sleep(1000);
printf("mc2号使用复活权\n");
n++;
a[2]=2;
do m=rand()%5+1;
while(a[m]==0||m==2);
Sleep(1000); printf("并随机诅咒了mc%d号\n",m);
if(rand()%2==1)
{
a[m]=0;
Sleep(1000); printf("mc%d号死了\n\n",m);
n--;
}
else
{
Sleep(1000); printf("但他没死\n\n");
}
h=1;
}
if(a[3]==0&&o==0)
{
Sleep(1000); printf("mc3号使用复活权\n\n"); a[3]=3; o++; n++;
}
if(i==4&&a[p]==0)
{
if(n==1) break;
else
{
Sleep(1000); printf("mc4号使用再次攻击权\n");
goto AA;
}
}
if(a[b]==0&&e==0)
{
if(n==1) break;
printf("你死了,是否继续观看游戏至结束?是按0,否按1\n");
scanf("%d",&x);
if(x==1) break;
else e=1;
}
i++;
}
for(j=1;j<=5;j++) if(a[j]!=0) d=j;
if(x!=1)
{
Sleep(800);
printf("mc %d号赢了",d);
}
else
printf("游戏结束");
}
}
else if(b==7){
cout<<" mc·游戏了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"版本:1.5(baet版)\n";
cout<<endl;
cout<<endl;
cout<<"本游戏为mc游戏库。\n在此游戏中有:\n单人游戏\n多人游戏\n主播模式\n自创模式\n故事模式\n作者经历。\n请问,你要了解哪一种游戏(输出游戏名):\n";
cout<<"-------------------------------------------------------\n";
string b11;
cin>>b11;
if(b11=="单人游戏"){
cout<<" mc·游戏了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"本专辑有:\n1.跑酷:此游戏较坑爹,不过仅有4关。难度:★★\n2.解密:此游戏有10关,但某些关需要自行输入,有可能将你逼疯!(除你看程序)难度:★★★★\n3.创造一个世界:本游戏会创造各种都市传说意境。\n现已登入:\n1.him\n2.绿色史蒂夫\n3.Null。\n难度:★★★\n";
cout<<"请重新开始!";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(b11=="多人游戏"){
cout<<" mc·游戏了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"本专辑有:\n1.狼人杀:普通版,但赢的概率非常小!(一死游戏就结束)难度:★★★★★\n服务器:①服主版 ②朋友版 难度:★★★\n杀手:每个杀手都有特性:\n1号:复活、诅咒\n2号:诅咒、复活\n3号:诅咒、复活\n4号:拥有两次杀人权(几率)\n5号:无视复活(必须先杀死)\n";
cout<<"请重新开始!";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(b11=="主播模式"){
cout<<" mc·游戏了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"本专辑是:你可以选择一个主播,试验一次视频内容。\n即将加入:\n木鱼\n阿神\n扁桃\n籽岷\n大橙子\n五歌\n天琪\n小本\n悠然小天\n明月庄主\n";
cout<<"请重新开始!";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(b11=="自创模式"){
cout<<" mc·游戏了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"本专辑是:可以自己当主播。\n注:你的每一步选择都会影响到后面的最终得分。难度:★★★★★★\n";
cout<<"请重新开始!";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(b11=="故事模式"){
cout<<" mc·游戏了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"本专辑是:有章节目录,从mc小白变mc大神!难度:★★★★★★\n";
cout<<"请重新开始!";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(b11=="作者经历"){
cout<<" mc·游戏了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"本专辑是:了解我的经历 难度:★\n";
cout<<"请重新开始!";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
return 0;
}
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
}
else if(b==8){
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" mc·作者了解\n";
cout<<"-------------------------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<"作者:徐梓航;\n称号:mc高级c++游戏编写;\n已编游戏:\nmc·黑夜:网址__http://liuseroj.picp.io/article/532;\nmc游戏库:网址__http://liuseroj.picp.io/article/554;\n请用:Google Chrome或双核浏览器2.0(狗哥浏览器)登录;\n";
cout<<"请重新开始!";
cout<<endl;
cout<<endl;
cout<<"-------------------------------------------------------\n";
return 0;
}
else if(a==2){
cout<<"对不起,ios爆了!:)";
}
}
}
共 9 条回复
但100%遇到十字架
那个单人模式种子666出生不是夜晚,并且也不一定遇到him
兄弟们,我名字里的几个东西,它不香吗?
我抽到了him的手下
游戏模板更新
我是预言家,牛逼不?
还没成型吧,还是mc黑夜好玩(如果mc黑夜也是这个库里的一个模式的话就好了)
MC十年Liuseroj专业开发顶尖高手——徐梓航
额,我狼人杀一直是平民,到底谁抽到了平民以上的职业?