#include<bits/stdc++.h>
using namespace std;
struct Pai{ int sha,shan,tao,shunshou,guohe,wuxie,wuzhong,renwang,nanman,wanjian; }p1[4],p2[4];
int pdq1,pdq2,xl1=4,xl2=4,shashu;
int zb1[4]={0},zb2[4]={0};
void csp1() {
int sj=rand()%14;
if((sj>=0&&sj<=2)||sj==11) { cout<<"\b杀 "; p1[rand()%4].sha++; }
if(sj>=3&&sj<=5) { cout<<"\b闪 "; p1[rand()%4].shan++; }
if(sj==6) { cout<<"\b桃 "; p1[rand()%4].tao++; }
if(sj==7) { cout<<"\b顺手牵羊 "; p1[rand()%4].shunshou++; }
if(sj==8||sj==9) { cout<<"\b过河拆桥 "; p1[rand()%4].guohe++; }
if(sj==10) { cout<<"\b无中生有 "; p1[rand()%2].wuzhong++; }
// if(){ cout<<"\b仁王盾 "; p1[rand()%4].renwang++; }
if(sj==12){ cout<<"\b南蛮入侵 "; p1[rand()%4].nanman++; }
if(sj==13){ cout<<"\b无懈可击 "; p1[rand()%4].wuxie++; }
if(sj==14){ cout<<"\b万箭齐发 "; p1[rand()%2].wanjian++; }
}
void csp2() {
int sj=rand()%15;
if((sj>=0&&sj<=2)||sj==11) { cout<<"\b杀 "; p2[rand()%4].sha++; }
if(sj>=3&&sj<=5) { cout<<"\b闪 "; p2[rand()%4].shan++; }
if(sj==6) { cout<<"\b桃 "; p2[rand()%4].tao++; }
if(sj==7) { cout<<"\b顺手牵羊 "; p2[rand()%4].shunshou++; }
if(sj==8||sj==9) { cout<<"\b过河拆桥 "; p2[rand()%4].guohe++; }
if(sj==10) { cout<<"\b无中生有 "; p2[rand()%2].wuzhong++; }
// if(){ cout<<"\b仁王盾 "; p2[rand()%4].renwang++; }
if(sj==12){ cout<<"\b南蛮入侵 "; p2[rand()%4].nanman++; }
if(sj==13){ cout<<"\b无懈可击 "; p2[rand()%4].wuxie++; }
if(sj==14){ cout<<"\b万箭齐发 "; p2[rand()%2].wanjian++; }
}
int sps(int a){
int zs=0;
if(a==1)
for(int i=0;i<4;++i) {
zs+=p1[i].sha; zs+=p1[i].shan;
zs+=p1[i].tao; zs+=p1[i].shunshou;
zs+=p1[i].guohe; zs+=p1[i].wuzhong;
zs+=p1[i].wuxie; zs+=p1[i].nanman;
zs+=p1[i].renwang; zs+=p1[i].wanjian; }
if(a==2)
for(int i=0;i<4;++i) {
zs+=p2[i].sha; zs+=p2[i].shan;
zs+=p2[i].tao; zs+=p2[i].shunshou;
zs+=p2[i].guohe; zs+=p2[i].wuzhong;
zs+=p2[i].wuxie; zs+=p2[i].nanman;
zs+=p2[i].renwang; zs+=p2[i].wanjian; }
return zs;
}
int winp() { if(xl1==0&&xl2!=0) return 2; else if(xl2==0&&xl1!=0) return 1; else return 3;}
int main(){
srand(time(NULL));
cout<<"\b本游戏由张爹地独自开发并出品,切勿窃搬!\n";
_sleep(850);
cout<<"\b豪华版!\n";
_sleep(500);
cout<<"\n\b玩家1初始手牌:";
for(int i=1;i<=4;++i) {
_sleep(75);
int sj=rand()%15;
if((sj>=0&&sj<=2)||sj==11) { cout<<"\b杀 "; p1[rand()%4].sha++; }
if(sj>=3&&sj<=5) { cout<<"\b闪 "; p1[rand()%2].shan++; }
if(sj==6) { cout<<"\b桃 "; p1[rand()%2].tao++; }
if(sj==7) { cout<<"\b顺手牵羊 "; p1[rand()%4].shunshou++; }
if(sj==8||sj==9) { cout<<"\b过河拆桥 "; p1[rand()%4].guohe++; }
if(sj==10) { cout<<"\b无中生有 "; p1[rand()%2].wuzhong++; }
// if(){ cout<<"\b仁王盾 "; p1[rand()%2+2].renwang++; }
if(sj==12){ cout<<"\b南蛮入侵 "; p1[rand()%4].nanman++; }
if(sj==13){ cout<<"\b无懈可击 "; p1[rand()%4].wuxie++; }
if(sj==14){ cout<<"\b万箭齐发 "; p1[rand()%2].wanjian++; }
} //玩家1初始手牌
_sleep(1000);
cout<<"\n"<<"\b玩家2初始手牌: ";
for(int i=1;i<=4;++i) {
_sleep(75);
int sj=rand()%15;
if((sj>=0&&sj<=2)||sj==11) { cout<<"\b杀 "; p2[rand()%4].sha++; }
if(sj>=3&&sj<=5) { cout<<"\b闪 "; p2[rand()%2].shan++; }
if(sj==6) { cout<<"\b桃 "; p2[rand()%2].tao++; }
if(sj==7) { cout<<"\b顺手牵羊 "; p2[rand()%4].shunshou++; }
if(sj==8||sj==9) { cout<<"\b过河拆桥 "; p2[rand()%4].guohe++; }
if(sj==10) { cout<<"\b无中生有 "; p2[rand()%2].wuzhong++; }
// if(){ cout<<"\b仁王盾 "; p2[rand()%2+2].renwang++; }
if(sj==12){ cout<<"\b南蛮入侵 "; p2[rand()%2].nanman++; }
if(sj==13){ cout<<"\b无懈可击 "; p2[rand()%4].wuxie++; }
if(sj==14){ cout<<"\b万箭齐发 "; p2[rand()%2].wanjian++; }
} //玩家2初始手牌
//前方高能!注意用眼!
cout<<"\n";
while(1) {
cout<<"\n\b玩家1进入判定阶段\n";
_sleep(850);
if(pdq1==0) cout<<"\b该轮回玩家1判定区无延时锦囊牌\n";
_sleep(850);
cout<<"\n"<<"\b玩家1抽手牌: ";
csp1();
csp1();
_sleep(850); shashu=0;
cout<<"\n\b玩家1进入出牌阶段\n";
while(1) {
cout<<"\n\b玩家1血量为: "<<xl1<<"\n";
cout<<"\b玩家2血量为: "<<xl2<<"\n";
_sleep(500);
if(zb1[0]==0&&zb1[1]==0&&zb1[2]==0&&zb1[3]==0) cout<<"\b当前玩家1未穿戴装备\n";
else {
cout<<"\b玩家1装备了:\n";
switch(zb1[1]) {
case 1:{
cout<<"\b防具:仁王盾\n";
break;
} }
}
_sleep(500);
if(zb2[0]==0&&zb2[1]==0&&zb2[2]==0&&zb2[3]==0) cout<<"\b当前玩家2未穿戴装备\n";
else {
cout<<"\b玩家2装备了:\n";
switch(zb2[1]) {
case 1:{
cout<<"\b防具:仁王盾\n";
break;
} }
}
if(p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0) cout<<"\b1、杀 ";
if(p1[0].shan!=0||p1[1].shan!=0||p1[2].shan!=0||p1[3].shan!=0) cout<<"\b2、闪 ";
if(p1[0].tao!=0||p1[1].tao!=0||p1[2].tao!=0||p1[3].tao!=0) cout<<"\b3、桃 ";
if(p1[0].shunshou!=0||p1[1].shunshou!=0||p1[2].shunshou!=0||p1[3].shunshou!=0) cout<<"\b4、顺手牵羊 ";
if(p1[0].guohe!=0||p1[1].guohe!=0||p1[2].guohe!=0||p1[3].guohe!=0) cout<<"\b5、过河拆桥 ";
if(p1[0].wuzhong!=0||p1[1].wuzhong!=0||p1[2].wuzhong!=0||p1[3].wuzhong!=0) cout<<"\b6、无中生有 ";
if(p1[0].renwang!=0||p1[1].renwang!=0||p1[2].renwang!=0||p1[3].renwang!=0) cout<<"\b7、仁王盾 ";
if(p1[0].nanman!=0||p1[1].nanman!=0||p1[2].nanman!=0||p1[3].nanman!=0) cout<<"\b8、南蛮入侵 ";
if(p1[0].wanjian!=0||p1[1].wanjian!=0||p1[2].wanjian!=0||p1[3].wanjian!=0) cout<<"\b9、万箭齐发 ";
cout<<"\b10、跳过 ";
cout<<"\n"; int xxl; cin>>xxl;
if((p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0)&&xxl==1&&shashu==0) {
cout<<"\b 请选择你使用的杀\n";
if(p1[0].sha!=0) cout<<"\b 1、杀【方片】\n";
if(p1[1].sha!=0) cout<<"\b 2、杀【红桃】\n";
if(p1[2].sha!=0) cout<<"\b 3、杀【黑桃】\n";
if(p1[3].sha!=0) cout<<"\b 4、杀【黑梅】\n";
int xxs,lsbl; cin>>xxs; lsbl=xxs;
if(xxs==1) cout<<" \b你的方片【杀】的目标是玩家2,确定使用吗\n";
else if(xxs==2) cout<<" \b你的红桃【杀】的目标是玩家2,确定使用吗\n";
else if(xxs==3) cout<<" \b你的黑桃【杀】的目标是玩家2,确定使用吗\n";
else if(xxs==4) cout<<" \b你的黑梅【杀】的目标是玩家2,确定使用吗\n";
cout<<"\b1、是 2、否\n"; cin>>xxs;
if(xxs==1&&(p2[0].shan!=0||p2[1].shan!=0||p2[2].shan!=0||p2[3].shan!=0)) {
cout<<"\b 玩家1对玩家2使用了一张杀,玩家2是否用【闪】响应\n";
cout<<"\b 1、是 2、否\n"; cin>>xxs;
if(xxs==2) { cout<<"\b 玩家2拒绝使用【闪】响应,受到1点伤害\n"; xl2--; }
else if(xxs==1) {
cout<<"\b 玩家2使用【闪】响应,未受到伤害\n";
if(p2[0].shan!=0) p2[0].shan--;
else if(p2[1].shan!=0) p2[1].shan--;
else if(p2[2].shan!=0) p2[2].shan--;
else p2[3].shan--; }
}
else if(xxs==1&&(p2[0].shan==0||p2[1].shan==0||p2[2].shan==0||p2[3].shan==0)) {
cout<<"\b玩家2受到玩家1的【杀】所造成的1点伤害\n";
xl2--; if(winp()!=3) break;
}
p1[lsbl-1].sha--;
shashu++;
}
else if((p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0)&&xxl==1&&shashu!=0) cout<<"\b本回合你已经使用过【杀】了,无法再次使用\n";
else if((p1[0].tao!=0||p1[1].tao!=0)&&xxl==3) {
cout<<"\b 请选择你使用的桃\n";
int xxs,xxl,lsbl;
if(p1[0].tao!=0) cout<<"\b 1、桃【方片】\n";
if(p1[1].tao!=0) cout<<"\b 2、桃【红桃】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b你使用方片【桃】以后会恢复一点体力,是否使用\n";
else if(xxs==2) cout<<"\b你使用红桃【桃】以后会恢复一点体力,是否使用\n";
cout<<"\b1、是 2、否\n"; cin>>xxl;
if(xxl==1&&xl1!=4) {
cout<<"\b使用成功,玩家1恢复1点体力\n";
xl1++;
p1[lsbl].tao--;
}
else if(xxl==1&&xl1==4) cout<<"\b你的体力值为满,不需要使用桃\n";
}// 桃
else if((p1[0].shunshou!=0||p1[1].shunshou!=0||p1[2].shunshou!=0||p1[3].shunshou!=0)&&xxl==4) {
cout<<"\b请选择你使用的顺手牵羊\n";
int xxs,xxl,lsbl; bool boll=true,bol=false;
if(p1[0].shunshou!=0) cout<<"\b 1、顺手牵羊【方片】\n";
if(p1[1].shunshou!=0) cout<<"\b 2、顺手牵羊【红桃】\n";
if(p1[2].shunshou!=0) cout<<"\b 3、顺手牵羊【黑桃】\n";
if(p1[3].shunshou!=0) cout<<"\b 4、顺手牵羊【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【顺手牵羊】目标是玩家2,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【顺手牵羊】目标是玩家2,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【顺手牵羊】目标是玩家2,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【顺手牵羊】目标是玩家2,是否使用\n";
cout<<"\b1、是 2、否\n"; cin>>xxs;
if(xxs==1) {
if(sps(1)>=1) {
if(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0) {
cout<<"\b玩家1使用了【顺手牵羊】,玩家2是否使用【无懈可击】\n";
cout<<"\b1、是 2、否\n";
cin>>xxs;
if(xxs==1) {
cout<<"\b玩家2用【无懈可击】无懈了玩家1的顺手牵羊,玩家1的【顺手牵羊】无效\n";
if(p2[0].wuxie!=0) p2[0].wuxie--;
else if(p2[1].wuxie!=0) p2[1].wuxie--;
else if(p2[2].wuxie!=0) p2[2].wuxie--;
else if(p2[3].wuxie!=0) p2[3].wuxie--;
boll=false;
}
}
if(boll) {
while(1) {
if(bol) break;
int sj=rand()%8;
switch(sj) {
case 0:{
cout<<"1\n";
if(p2[0].sha!=0) { bol=true; p2[0].sha--; p1[0].sha++; cout<<"\b玩家1顺到了玩家2的方片【杀】\n"; }
else if(p2[1].sha!=0) { bol=true; p2[1].sha--; p1[1].sha++; cout<<"\b玩家1顺到了玩家2的红桃【杀】\n"; }
else if(p2[2].sha!=0) { bol=true; p2[2].sha--; p1[2].sha++; cout<<"\b玩家1顺到了玩家2的黑桃【杀】\n"; }
else if(p2[3].sha!=0) { bol=true; p2[3].sha--; p1[3].sha++; cout<<"\b玩家1顺到了玩家2的黑梅【杀】\n"; }
break; }
case 1:{
cout<<"2\n";
if(p2[0].shan!=0) { bol=true; p2[0].shan--; p1[0].shan++; cout<<"\b玩家1顺到了玩家2的方片【闪】\n"; }
else if(p2[1].shan!=0) { bol=true; p2[1].shan--; p1[1].shan++; cout<<"\b玩家1顺到了玩家2的红桃【闪】\n"; }
break; }
case 2:{
cout<<"3\n";
if(p2[0].tao!=0) { bol=true; p2[0].tao--; p1[0].tao++; cout<<"\b玩家1顺到了玩家2的方片【桃】\n"; }
else if(p2[1].tao!=0) { bol=true; p2[1].tao--; p1[1].tao++; cout<<"\b玩家1顺到了玩家2的红桃【桃】\n"; }
break; }
case 3:{
cout<<"4\n";
if(p2[0].shunshou!=0) { bol=true; p2[0].shunshou--; p1[0].shunshou++; cout<<"\b玩家1顺到了玩家2的方片【顺手牵羊】\n"; }
else if(p2[1].shunshou!=0) { bol=true; p2[1].shunshou--; p1[1].shunshou++; cout<<"\b玩家1顺到了玩家2的红桃【顺手牵羊】\n"; }
else if(p2[2].shunshou!=0) { bol=true; p2[2].shunshou--; p1[2].shunshou++; cout<<"\b玩家1顺到了玩家2的黑桃【顺手牵羊】\n"; }
else if(p2[3].shunshou!=0) { bol=true; p2[3].shunshou--; p1[3].shunshou++; cout<<"\b玩家1顺到了玩家2的黑梅【顺手牵羊】\n"; }
break; }
case 4:{
cout<<"5\n";
if(p2[0].nanman!=0) { bol=true; p2[0].nanman--; p1[0].nanman++; cout<<"\b玩家1顺到了玩家2的方片【南蛮入侵】\n"; }
else if(p2[1].nanman!=0) { bol=true; p2[1].nanman--; p1[1].nanman++; cout<<"\b玩家1顺到了玩家2的红桃【南蛮入侵】\n"; }
else if(p2[2].nanman!=0) { bol=true; p2[2].nanman--; p1[2].nanman++; cout<<"\b玩家1顺到了玩家2的黑桃【南蛮入侵】\n"; }
else if(p2[3].nanman!=0) { bol=true; p2[3].nanman--; p1[3].nanman++; cout<<"\b玩家1顺到了玩家2的黑梅【南蛮入侵】\n"; }
break; }
case 5:{
cout<<"6\n";
if(p2[0].guohe!=0) { bol=true; p2[0].guohe--; p1[0].guohe++; cout<<"\b玩家1顺到了玩家2的方片【过河拆桥】\n"; }
else if(p2[1].guohe!=0) { bol=true; p2[1].guohe--; p1[1].guohe++; cout<<"\b玩家1顺到了玩家2的红桃【过河拆桥】\n"; }
else if(p2[2].guohe!=0) { bol=true; p2[2].guohe--; p1[2].guohe++; cout<<"\b玩家1顺到了玩家2的黑桃【过河拆桥】\n"; }
else if(p2[3].guohe!=0) { bol=true; p2[3].guohe--; p1[3].guohe++; cout<<"\b玩家1顺到了玩家2的黑梅【过河拆桥】\n"; }
break; }
case 6:{
cout<<"7\n";
if(p2[0].wuzhong!=0) { bol=true; p2[0].wuzhong--; p1[0].wuzhong++; cout<<"\b玩家1顺到了玩家2的方片【无中生有】\n"; }
else if(p2[1].wuzhong!=0) { bol=true; p2[1].wuzhong--; p1[1].wuzhong++; cout<<"\b玩家1顺到了玩家2的红桃【无中生有】\n"; }
break; }
case 7:{
cout<<"8\n";
if(p2[0].wanjian!=0) { bol=true; p2[0].wanjian--; p1[0].wanjian++; cout<<"\b玩家1顺到了玩家2的方片【万箭齐发】\n"; }
else if(p2[1].wanjian!=0) { bol=true; p2[1].wanjian--; p1[1].wanjian++; cout<<"\b玩家1顺到了玩家2的红桃【万箭齐发】\n"; }
break; }
} //switch
}
}
}
else cout<<"\b玩家2没有手牌你顺个dan啊\n";
p1[lsbl].shunshou--;
_sleep(850);
}
}
else if((p1[0].guohe!=0||p1[1].guohe!=0||p1[2].guohe!=0||p1[3].guohe!=0)&&xxl==5) {
cout<<"\b请选择你使用的过河拆桥\n";
int xxs,xxl,lsbl; bool boll=true,bol=false;
if(p1[0].guohe!=0) cout<<"\b 1、过河拆桥【方片】\n";
if(p1[1].guohe!=0) cout<<"\b 2、过河拆桥【红桃】\n";
if(p1[2].guohe!=0) cout<<"\b 3、过河拆桥【黑桃】\n";
if(p1[3].guohe!=0) cout<<"\b 4、过河拆桥【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【过河拆桥】目标是玩家2,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【过河拆桥】目标是玩家2,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【过河拆桥】目标是玩家2,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【过河拆桥】目标是玩家2,是否使用\n";
cout<<"\b1、是 2、否\n"; cin>>xxs;
if(xxs==1) {
if(sps(1)>=1) {
if(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0) {
cout<<"\b玩家1使用了【过河拆桥】,玩家2是否使用【无懈可击】\n";
cout<<"\b1、是 2、否\n";
cin>>xxs;
if(xxs==1) {
cout<<"\b玩家2用【无懈可击】无懈了玩家1的过河拆桥,玩家1的【过河拆桥】无效\n";
if(p2[0].wuxie!=0) p2[0].wuxie--;
else if(p2[1].wuxie!=0) p2[1].wuxie--;
else if(p2[2].wuxie!=0) p2[2].wuxie--;
else if(p2[3].wuxie!=0) p2[3].wuxie--;
boll=false;
}
}
if(boll) {
while(1) {
if(bol) break;
int sj=rand()%8;
switch(sj) {
case 0:{
cout<<"1\n";
if(p2[0].sha!=0) { bol=true; p2[0].sha--; cout<<"\b玩家1拆了玩家2的方片【杀】\n"; }
else if(p2[1].sha!=0) { bol=true; p2[1].sha--; cout<<"\b玩家1拆了玩家2的红桃【杀】\n"; }
else if(p2[2].sha!=0) { bol=true; p2[2].sha--; cout<<"\b玩家1拆了玩家2的黑桃【杀】\n"; }
else if(p2[3].sha!=0) { bol=true; p2[3].sha--; cout<<"\b玩家1拆了玩家2的黑梅【杀】\n"; }
break; }
case 1:{
cout<<"2\n";
if(p2[0].shan!=0) { bol=true; p2[0].shan--; cout<<"\b玩家1拆了玩家2的方片【闪】\n"; }
else if(p2[1].shan!=0) { bol=true; p2[1].shan--; cout<<"\b玩家1拆了玩家2的红桃【闪】\n"; }
break; }
case 2:{
cout<<"3\n";
if(p2[0].tao!=0) { bol=true; p2[0].tao--; cout<<"\b玩家1拆了玩家2的方片【桃】\n"; }
else if(p2[1].tao!=0) { bol=true; p2[1].tao--; cout<<"\b玩家1拆了玩家2的红桃【桃】\n"; }
break; }
case 3:{
cout<<"4\n";
if(p2[0].shunshou!=0) { bol=true; p2[0].shunshou--; cout<<"\b玩家1拆了玩家2的方片【顺手牵羊】\n"; }
else if(p2[1].shunshou!=0) { bol=true; p2[1].shunshou--; cout<<"\b玩家1拆了玩家2的红桃【顺手牵羊】\n"; }
else if(p2[2].shunshou!=0) { bol=true; p2[2].shunshou--; cout<<"\b玩家1拆了玩家2的黑桃【顺手牵羊】\n"; }
else if(p2[3].shunshou!=0) { bol=true; p2[3].shunshou--; cout<<"\b玩家1拆了玩家2的黑梅【顺手牵羊】\n"; }
break; }
case 4:{
cout<<"5\n";
if(p2[0].nanman!=0) { bol=true; p2[0].nanman--; cout<<"\b玩家1拆了玩家2的方片【南蛮入侵】\n"; }
else if(p2[1].nanman!=0) { bol=true; p2[1].nanman--; cout<<"\b玩家1拆了玩家2的红桃【南蛮入侵】\n"; }
else if(p2[2].nanman!=0) { bol=true; p2[2].nanman--; cout<<"\b玩家1拆了玩家2的黑桃【南蛮入侵】\n"; }
else if(p2[3].nanman!=0) { bol=true; p2[3].nanman--; cout<<"\b玩家1拆了玩家2的黑梅【南蛮入侵】\n"; }
break; }
case 5:{
cout<<"6\n";
if(p2[0].guohe!=0) { bol=true; p2[0].guohe--; cout<<"\b玩家1拆了玩家2的方片【过河拆桥】\n"; }
else if(p2[1].guohe!=0) { bol=true; p2[1].guohe--; cout<<"\b玩家1拆了玩家2的红桃【过河拆桥】\n"; }
else if(p2[2].guohe!=0) { bol=true; p2[2].guohe--; cout<<"\b玩家1拆了玩家2的黑桃【过河拆桥】\n"; }
else if(p2[3].guohe!=0) { bol=true; p2[3].guohe--; cout<<"\b玩家1拆了玩家2的黑梅【过河拆桥】\n"; }
break; }
case 6:{
cout<<"7\n";
if(p2[0].wuzhong!=0) { bol=true; p2[0].wuzhong--; cout<<"\b玩家1拆了玩家2的方片【无中生有】\n"; }
else if(p2[1].wuzhong!=0) { bol=true; p2[1].wuzhong--; cout<<"\b玩家1拆了玩家2的红桃【无中生有】\n"; }
break; }
case 7:{
cout<<"8\n";
if(p2[0].wanjian!=0) { bol=true; p2[0].wanjian--; cout<<"\b玩家1拆了玩家2的方片【万箭齐发】\n"; }
else if(p2[1].wanjian!=0) { bol=true; p2[1].wanjian--; cout<<"\b玩家1拆了玩家2的红桃【万箭齐发】\n"; }
break; }
} //switch
}
}
}
else cout<<"\b玩家2没有手牌你拆个dan啊\n";
p1[lsbl].guohe--;
_sleep(850);
}
}
else if((p1[0].wuzhong!=0||p1[1].wuzhong!=0)&&xxl==6) {
cout<<"\b 请选择你使用的无中生有\n";
int xxs,xxl,lsbl;
if(p1[0].wuzhong!=0) cout<<"\b 1、无中生有【方片】\n";
if(p1[1].wuzhong!=0) cout<<"\b 2、无中生有【红桃】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b使用方片【无中生有】你可以获得两张牌,是否使用\n";
else if(xxs==2) cout<<"\b使用红桃【无中生有】你可以获得两张牌,是否使用\n";
cout<<"\b1、是 2、否\n";
cin>>xxl;
if(xxl==1) {
cout<<"\b使用成功,获得以下手牌\n";
_sleep(850);
csp1();
_sleep(850);
csp1();
_sleep(850);
p1[lsbl].wuzhong--;
_sleep(750);
}
}
// else if((p1[2].renwang!=0||p1[3].renwang!=0)&&xxl==7) cout<<"\b7、仁王盾 ";
else if((p1[0].nanman!=0||p1[1].nanman!=0||p1[2].nanman!=0||p1[3].nanman!=0)&&xxl==8) {
cout<<"\b 请选择你使用的南蛮入侵\n";
int xxl,xxs,lsbl;
_sleep(750);
if(p1[0].nanman!=0) cout<<"\b 1、南蛮入侵【方片】\n";
if(p1[1].nanman!=0) cout<<"\b 2、南蛮入侵【红桃】\n";
if(p1[2].nanman!=0) cout<<"\b 3、南蛮入侵【黑桃】\n";
if(p1[3].nanman!=0) cout<<"\b 4、南蛮入侵【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【南蛮入侵】目标是所有其他玩家,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【南蛮入侵】目标是所有其他玩家,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【南蛮入侵】目标是所有其他玩家,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【南蛮入侵】目标是所有其他玩家,是否使用\n";
cout<<"\b1、是 2、否 \n"; cin>>xxs;
if(xxs==1) {
cout<<"\b玩家1对所有玩家使用【南蛮入侵】\n";
_sleep(1000);
cout<<"\b玩家2需要使用【杀】或【无懈可击】响应\n";
cout<<"\b请选择你使用的响应牌 \n ";
if(p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0) cout<<"\b1、杀 ";
if(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0) cout<<"\b2、无懈可击 ";
cout<<"\b3、放弃响应\n"; cin>>xxl;
if(xxl==1&&(p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0)) {
cout<<"\b玩家2使用【杀】响应了【南蛮入侵】,未造成伤害\n";
if(p2[0].sha!=0) p2[0].sha--;
else if(p2[1].sha!=0) p2[1].sha--;
else if(p2[2].sha!=0) p2[2].sha--;
else if(p2[3].sha!=0) p2[3].sha--;
}
else if(xxl==2&&(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0)) {
cout<<"\b玩家2使用【无懈可击】响应了【南蛮入侵】,未造成伤害\n";
if(p2[0].wuxie!=0) p2[0].wuxie--;
else if(p2[1].wuxie!=0) p2[1].wuxie--;
else if(p2[2].wuxie!=0) p2[2].wuxie--;
else if(p2[3].wuxie!=0) p2[3].wuxie--;
}
else if(xxl==3) {
cout<<"\b玩家2拒绝响应,受到1点伤害\n";
xl2--; if(winp()!=3) break;
}
}
p1[lsbl].nanman--;
}
else if((p1[0].wanjian!=0||p1[1].wanjian!=0)&&xxl==9) {
cout<<"\b 请选择你使用的万箭齐发\n";
int xxl,xxs,lsbl;
_sleep(750);
if(p1[0].wanjian!=0) cout<<"\b 1、万箭齐发【方片】\n";
if(p1[1].wanjian!=0) cout<<"\b 2、万箭齐发【红桃】\n";
if(p1[2].wanjian!=0) cout<<"\b 3、万箭齐发【黑桃】\n";
if(p1[3].wanjian!=0) cout<<"\b 4、万箭齐发【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【万箭齐发】目标是所有其他玩家,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【万箭齐发】目标是所有其他玩家,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【万箭齐发】目标是所有其他玩家,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【万箭齐发】目标是所有其他玩家,是否使用\n";
cout<<"\b1、是 2、否 \n"; cin>>xxs;
if(xxs==1) {
cout<<"\b玩家1对所有玩家使用【万箭齐发】\n";
_sleep(1000);
cout<<"\b玩家2需要使用【闪】或【无懈可击】响应\n";
cout<<"\b请选择你使用的响应牌 \n ";
if(p1[0].shan!=0||p1[1].shan!=0||p1[2].shan!=0||p1[3].shan!=0) cout<<"\b1、闪 ";
if(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0) cout<<"\b2、无懈可击 ";
cout<<"\b3、放弃响应\n"; cin>>xxl;
if(xxl==1&&(p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0)) {
cout<<"\b玩家2使用【闪】响应了【万箭齐发】,未造成伤害\n";
if(p2[0].shan!=0) p2[0].shan--;
else if(p2[1].shan!=0) p2[1].shan--;
else if(p2[2].shan!=0) p2[2].shan--;
else if(p2[3].shan!=0) p2[3].shan--;
}
else if(xxl==2&&(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0)) {
cout<<"\b玩家2使用【无懈可击】响应了【万箭齐发】,未造成伤害\n";
if(p2[0].wuxie!=0) p2[0].wuxie--;
else if(p2[1].wuxie!=0) p2[1].wuxie--;
else if(p2[2].wuxie!=0) p2[2].wuxie--;
else if(p2[3].wuxie!=0) p2[3].wuxie--;
}
else if(xxl==3) {
cout<<"\b玩家2拒绝响应,受到1点伤害\n";
xl2--; if(winp()!=3) break;
}
}
p1[lsbl].wanjian--;
}
else if(xxl==10) break;
} //玩家1出牌
cout<<"\b玩家1进入弃牌阶段\n";
_sleep(850);
while(sps(1)>xl1) {
cout<"\b请选择你要弃置的牌\n";
int xxs,xxl,lsbl;
if(p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0) cout<<"\b1、杀 ";
if(p1[0].shan!=0||p1[1].shan!=0) cout<<"\b2、闪 ";
if(p1[0].tao!=0||p1[1].tao!=0) cout<<"\b3、桃 ";
if(p1[0].shunshou!=0||p1[1].shunshou!=0||p1[2].shunshou!=0||p1[3].shunshou!=0) cout<<"\b4、顺手牵羊 ";
if(p1[0].guohe!=0||p1[1].guohe!=0||p1[2].guohe!=0||p1[3].guohe!=0) cout<<"\b5、过河拆桥 ";
if(p1[0].wuzhong!=0||p1[1].wuzhong!=0) cout<<"\b6、无中生有 ";
// if(p1[0].renwang!=0||p1[1].renwang!=0||p1[2].renwang!=0||p1[3].renwang!=0) cout<<"\b7、仁王盾 ";
if(p1[0].nanman!=0||p1[1].nanman!=0||p1[2].nanman!=0||p1[3].nanman!=0) cout<<"\b8、南蛮入侵 ";
if(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0) cout<<"\b9、无懈可击 ";
if(p1[0].wanjian!=0||p1[1].wanjian!=0) cout<<"\b10、万箭齐发 ";
cout<<"\n"; cin>>xxl;
if(xxl==1&&(p1[0].sha!=0||p1[1].sha!=0||p1[2].sha!=0||p1[3].sha!=0)) {
cout<<"\b 请选择你弃置的杀\n";
if(p1[0].sha!=0) cout<<"\b 1、杀【方片】\n";
if(p1[1].sha!=0) cout<<"\b 2、杀【红桃】\n";
if(p1[2].sha!=0) cout<<"\b 3、杀【黑桃】\n";
if(p1[3].sha!=0) cout<<"\b 4、杀【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【杀】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【杀】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【杀】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【杀】\n";
p1[lsbl].sha--;
}
if(xxl==2&&(p1[0].shan!=0||p1[1].shan!=0)) {
cout<<"\b 请选择你弃置的闪\n";
if(p1[0].shan!=0) cout<<"\b 1、闪【方片】\n";
if(p1[1].shan!=0) cout<<"\b 2、闪【红桃】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【闪】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【闪】\n";
p1[lsbl].shan--;
}
if(xxl==3&&(p1[0].tao!=0||p1[1].tao!=0)) {
cout<<"\b 请选择你弃置的桃\n";
if(p1[0].tao!=0) cout<<"\b 1、桃【方片】\n";
if(p1[1].tao!=0) cout<<"\b 2、桃【红桃】\n";
if(p1[2].tao!=0) cout<<"\b 3、桃【黑桃】\n";
if(p1[3].tao!=0) cout<<"\b 4、桃【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【桃】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【桃】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【桃】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【桃】\n";
p1[lsbl].tao--;
}
if(xxl==4&&(p1[0].shunshou!=0||p1[1].shunshou!=0||p1[2].shunshou!=0||p1[3].shunshou!=0)) {
cout<<"\b 请选择你弃置的顺手牵羊\n";
if(p1[0].shunshou!=0) cout<<"\b 1、顺手牵羊【方片】\n";
if(p1[1].shunshou!=0) cout<<"\b 2、顺手牵羊【红桃】\n";
if(p1[2].shunshou!=0) cout<<"\b 3、顺手牵羊【黑桃】\n";
if(p1[3].shunshou!=0) cout<<"\b 4、顺手牵羊【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【顺手牵羊】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【顺手牵羊】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【顺手牵羊】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【顺手牵羊】\n";
p1[lsbl].shunshou--;
}
if(xxl==5&&(p1[0].guohe!=0||p1[1].guohe!=0||p1[2].guohe!=0||p1[3].guohe!=0)) {
cout<<"\b 请选择你弃置的过河拆桥\n";
if(p1[0].guohe!=0) cout<<"\b 1、过河拆桥【方片】\n";
if(p1[1].guohe!=0) cout<<"\b 2、过河拆桥【红桃】\n";
if(p1[2].guohe!=0) cout<<"\b 3、过河拆桥【黑桃】\n";
if(p1[3].guohe!=0) cout<<"\b 4、过河拆桥【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【过河拆桥】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【过河拆桥】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【过河拆桥】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【过河拆桥】\n";
p1[lsbl].guohe--;
}
if(xxl==6&&(p1[0].wuzhong!=0||p1[1].wuzhong!=0)) {
cout<<"\b 请选择你弃置的无中生有\n";
if(p1[0].wuzhong!=0) cout<<"\b 1、无中生有【方片】\n";
if(p1[1].wuzhong!=0) cout<<"\b 2、无中生有【红桃】\n";
if(p1[2].wuzhong!=0) cout<<"\b 3、无中生有【黑桃】\n";
if(p1[3].wuzhong!=0) cout<<"\b 4、无中生有【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【无中生有】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【无中生有】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【无中生有】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【无中生有】\n";
p1[lsbl].wuzhong--;
}
if(xxl==8&&(p1[0].nanman!=0||p1[1].nanman!=0||p1[2].nanman!=0||p1[3].nanman!=0)) {
cout<<"\b 请选择你弃置的南蛮入侵\n";
if(p1[0].nanman!=0) cout<<"\b 1、南蛮入侵【方片】\n";
if(p1[1].nanman!=0) cout<<"\b 2、南蛮入侵【红桃】\n";
if(p1[2].nanman!=0) cout<<"\b 3、南蛮入侵【黑桃】\n";
if(p1[3].nanman!=0) cout<<"\b 4、南蛮入侵【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【南蛮入侵】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【南蛮入侵】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【南蛮入侵】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【南蛮入侵】\n";
p1[lsbl].nanman--;
}
if(xxl==9&&(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0)) {
cout<<"\b 请选择你弃置的无懈可击\n";
if(p1[0].wuxie!=0) cout<<"\b 1、无懈可击【方片】\n";
if(p1[1].wuxie!=0) cout<<"\b 2、无懈可击【红桃】\n";
if(p1[2].wuxie!=0) cout<<"\b 3、无懈可击【黑桃】\n";
if(p1[3].wuxie!=0) cout<<"\b 4、无懈可击【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【无懈可击】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【无懈可击】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【无懈可击】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【无懈可击】\n";
p1[lsbl].wuxie--;
}
if(xxl==10&&(p1[0].wanjian!=0||p1[1].wanjian!=0)) {
cout<<"\b 请选择你弃置的万箭齐发\n";
if(p1[0].wanjian!=0) cout<<"\b 1、万箭齐发【方片】\n";
if(p1[1].wanjian!=0) cout<<"\b 2、万箭齐发【红桃】\n";
if(p1[2].wanjian!=0) cout<<"\b 3、万箭齐发【黑桃】\n";
if(p1[3].wanjian!=0) cout<<"\b 4、万箭齐发【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家1弃置了方片【万箭齐发】\n";
else if(xxs==2) cout<<"\b玩家1弃置了红桃【万箭齐发】\n";
else if(xxs==3) cout<<"\b玩家1弃置了黑桃【万箭齐发】\n";
else if(xxs==4) cout<<"\b玩家1弃置了黑梅【万箭齐发】\n";
p1[lsbl].wanjian--;
}
} cout<<"\b玩家1弃牌阶段结束\n"; _sleep(1000);
cout<<"\n\b玩家2进入判定阶段\n";
_sleep(850);
if(pdq2==0) cout<<"\b该轮回玩家2判定区无延时锦囊牌\n";
_sleep(850);
cout<<"\n"<<"\b玩家2抽手牌: ";
csp2();
csp2();
_sleep(850); shashu=0;
cout<<"\n\b玩家2进入出牌阶段\n";
while(1) {
cout<<"\n\b玩家1血量为: "<<xl1<<"\n";
cout<<"\b玩家2血量为: "<<xl2<<"\n";
_sleep(500);
if(zb1[0]==0&&zb1[1]==0&&zb1[2]==0&&zb1[3]==0) cout<<"\b当前玩家1未穿戴装备\n";
else {
cout<<"\b玩家1装备了:\n";
switch(zb1[1]) {
case 1:{
cout<<"\b防具:仁王盾\n";
break;
} }
}
_sleep(500);
if(zb2[0]==0&&zb2[1]==0&&zb2[2]==0&&zb2[3]==0) cout<<"\b当前玩家2未穿戴装备\n";
else {
cout<<"\b玩家2装备了:\n";
switch(zb2[1]) {
case 1:{
cout<<"\b防具:仁王盾\n";
break;
} }
}
if(p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0) cout<<"\b1、杀 ";
if(p2[0].shan!=0||p2[1].shan!=0||p2[2].shan!=0||p2[3].shan!=0) cout<<"\b2、闪 ";
if(p2[0].tao!=0||p2[1].tao!=0||p2[2].tao!=0||p2[3].tao!=0) cout<<"\b3、桃 ";
if(p2[0].shunshou!=0||p2[1].shunshou!=0||p2[2].shunshou!=0||p2[3].shunshou!=0) cout<<"\b4、顺手牵羊 ";
if(p2[0].guohe!=0||p2[1].guohe!=0||p2[2].guohe!=0||p2[3].guohe!=0) cout<<"\b5、过河拆桥 ";
if(p2[0].wuzhong!=0||p2[1].wuzhong!=0||p2[2].wuzhong!=0||p2[3].wuzhong!=0) cout<<"\b6、无中生有 ";
if(p2[0].renwang!=0||p2[1].renwang!=0||p2[2].renwang!=0||p2[3].renwang!=0) cout<<"\b7、仁王盾 ";
if(p2[0].nanman!=0||p2[1].nanman!=0||p2[2].nanman!=0||p2[3].nanman!=0) cout<<"\b8、南蛮入侵 ";
if(p2[0].wanjian!=0||p2[1].wanjian!=0||p2[2].wanjian!=0||p2[3].wanjian!=0) cout<<"\b9、万箭齐发 ";
cout<<"\b10、跳过 ";
cout<<"\n"; int xxl; cin>>xxl;
if((p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0)&&xxl==1&&shashu==0) {
cout<<"\b 请选择你使用的杀\n";
if(p2[0].sha!=0) cout<<"\b 1、杀【方片】\n";
if(p2[1].sha!=0) cout<<"\b 2、杀【红桃】\n";
if(p2[2].sha!=0) cout<<"\b 3、杀【黑桃】\n";
if(p2[3].sha!=0) cout<<"\b 4、杀【黑梅】\n";
int xxs,lsbl; cin>>xxs; lsbl=xxs;
if(xxs==1) cout<<" \b你的方片【杀】的目标是玩家1,确定使用吗\n";
else if(xxs==2) cout<<" \b你的红桃【杀】的目标是玩家1,确定使用吗\n";
else if(xxs==3) cout<<" \b你的黑桃【杀】的目标是玩家1,确定使用吗\n";
else if(xxs==4) cout<<" \b你的黑梅【杀】的目标是玩家1,确定使用吗\n";
cout<<"\b1、是 2、否\n"; cin>>xxs;
if(xxs==1&&(p1[0].shan!=0||p1[1].shan!=0||p1[2].shan!=0||p1[3].shan!=0)) {
cout<<"\b 玩家2对玩家1使用了一张杀,玩家1是否用【闪】响应\n";
cout<<"\b 1、是 2、否\n"; cin>>xxs;
if(xxs==2) { cout<<"\b 玩家1拒绝使用【闪】响应,受到1点伤害\n"; xl1--; }
else if(xxs==1) {
cout<<"\b 玩家1使用【闪】响应,未受到伤害\n";
if(p1[0].shan!=0) p1[0].shan--;
else if(p1[1].shan!=0) p1[1].shan--;
else if(p1[2].shan!=0) p1[2].shan--;
else p1[3].shan--; }
}
else if(xxs==1&&(p1[0].shan==0||p1[1].shan==0||p1[2].shan==0||p1[3].shan==0)) {
cout<<"\b玩家2受到玩家1的【杀】所造成的1点伤害\n";
xl1--; if(winp()!=3) break;
}
p2[lsbl-1].sha--;
shashu++;
}
else if((p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0)&&xxl==1&&shashu!=0) cout<<"\b本回合你已经使用过【杀】了,无法再次使用\n";
else if((p2[0].tao!=0||p2[1].tao!=0)&&xxl==3) {
cout<<"\b 请选择你使用的桃\n";
int xxs,xxl,lsbl;
if(p2[0].tao!=0) cout<<"\b 1、桃【方片】\n";
if(p2[1].tao!=0) cout<<"\b 2、桃【红桃】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b你使用方片【桃】以后会恢复一点体力,是否使用\n";
else if(xxs==2) cout<<"\b你使用红桃【桃】以后会恢复一点体力,是否使用\n";
cout<<"\b1、是 2、否\n"; cin>>xxl;
if(xxl==1&&xl2!=4) {
cout<<"\b使用成功,玩家1恢复1点体力\n";
xl2++;
p2[lsbl].tao--;
}
else if(xxl==1&&xl2==4) cout<<"\b你的体力值为满,不需要使用桃\n";
}// 桃
else if((p2[0].shunshou!=0||p2[1].shunshou!=0||p2[2].shunshou!=0||p2[3].shunshou!=0)&&xxl==4) {
cout<<"\b请选择你使用的顺手牵羊\n";
int xxs,xxl,lsbl; bool boll=true,bol=false;
if(p2[0].shunshou!=0) cout<<"\b 1、顺手牵羊【方片】\n";
if(p2[1].shunshou!=0) cout<<"\b 2、顺手牵羊【红桃】\n";
if(p2[2].shunshou!=0) cout<<"\b 3、顺手牵羊【黑桃】\n";
if(p2[3].shunshou!=0) cout<<"\b 4、顺手牵羊【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【顺手牵羊】目标是玩家1,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【顺手牵羊】目标是玩家1,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【顺手牵羊】目标是玩家1,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【顺手牵羊】目标是玩家1,是否使用\n";
cout<<"\b1、是 2、否\n"; cin>>xxs;
if(xxs==1) {
if(sps(2)>=1) {
if(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0) {
cout<<"\b玩家2使用了【顺手牵羊】,玩家1是否使用【无懈可击】\n";
cout<<"\b1、是 2、否\n";
cin>>xxs;
if(xxs==1) {
cout<<"\b玩家1用【无懈可击】无懈了玩家2的顺手牵羊,玩家2的【顺手牵羊】无效\n";
if(p1[0].wuxie!=0) p1[0].wuxie--;
else if(p1[1].wuxie!=0) p1[1].wuxie--;
else if(p1[2].wuxie!=0) p1[2].wuxie--;
else if(p1[3].wuxie!=0) p1[3].wuxie--;
boll=false;
}
}
if(boll) {
while(1) {
if(bol) break;
int sj=rand()%8;
switch(sj) {
case 0:{
cout<<"1\n";
if(p1[0].sha!=0) { bol=true; p1[0].sha--; p2[0].sha++; cout<<"\b玩家2顺到了玩家1的方片【杀】\n"; }
else if(p1[1].sha!=0) { bol=true; p1[1].sha--; p2[1].sha++; cout<<"\b玩家2顺到了玩家1的红桃【杀】\n"; }
else if(p1[2].sha!=0) { bol=true; p1[2].sha--; p2[2].sha++; cout<<"\b玩家2顺到了玩家1的黑桃【杀】\n"; }
else if(p1[3].sha!=0) { bol=true; p1[3].sha--; p2[3].sha++; cout<<"\b玩家2顺到了玩家1的黑梅【杀】\n"; }
break; }
case 1:{
cout<<"2\n";
if(p1[0].shan!=0) { bol=true; p1[0].shan--; p2[0].shan++; cout<<"\b玩家2顺到了玩家1的方片【闪】\n"; }
else if(p1[1].shan!=0) { bol=true; p1[1].shan--; p2[1].shan++; cout<<"\b玩家2顺到了玩家1的红桃【闪】\n"; }
break; }
case 2:{
cout<<"3\n";
if(p1[0].tao!=0) { bol=true; p1[0].tao--; p2[0].tao++; cout<<"\b玩家2顺到了玩家1的方片【桃】\n"; }
else if(p1[1].tao!=0) { bol=true; p1[1].tao--; p2[1].tao++; cout<<"\b玩家2顺到了玩家1的红桃【桃】\n"; }
break; }
case 3:{
cout<<"4\n";
if(p1[0].shunshou!=0) { bol=true; p1[0].shunshou--; p2[0].shunshou++; cout<<"\b玩家2顺到了玩家1的方片【顺手牵羊】\n"; }
else if(p1[1].shunshou!=0) { bol=true; p1[1].shunshou--; p2[1].shunshou++; cout<<"\b玩家2顺到了玩家1的红桃【顺手牵羊】\n"; }
else if(p1[2].shunshou!=0) { bol=true; p1[2].shunshou--; p2[2].shunshou++; cout<<"\b玩家2顺到了玩家1的黑桃【顺手牵羊】\n"; }
else if(p1[3].shunshou!=0) { bol=true; p1[3].shunshou--; p2[3].shunshou++; cout<<"\b玩家2顺到了玩家1的黑梅【顺手牵羊】\n"; }
break; }
case 4:{
cout<<"5\n";
if(p1[0].nanman!=0) { bol=true; p1[0].nanman--; p2[0].nanman++; cout<<"\b玩家2顺到了玩家2的方片【南蛮入侵】\n"; }
else if(p1[1].nanman!=0) { bol=true; p1[1].nanman--; p2[1].nanman++; cout<<"\b玩家2顺到了玩家1的红桃【南蛮入侵】\n"; }
else if(p1[2].nanman!=0) { bol=true; p1[2].nanman--; p2[2].nanman++; cout<<"\b玩家2顺到了玩家1的黑桃【南蛮入侵】\n"; }
else if(p1[3].nanman!=0) { bol=true; p1[3].nanman--; p2[3].nanman++; cout<<"\b玩家2顺到了玩家1的黑梅【南蛮入侵】\n"; }
break; }
case 5:{
cout<<"6\n";
if(p1[0].guohe!=0) { bol=true; p1[0].guohe--; p2[0].guohe++; cout<<"\b玩家2顺到了玩家1的方片【过河拆桥】\n"; }
else if(p1[1].guohe!=0) { bol=true; p1[1].guohe--; p2[1].guohe++; cout<<"\b玩家2顺到了玩家1的红桃【过河拆桥】\n"; }
else if(p1[2].guohe!=0) { bol=true; p1[2].guohe--; p2[2].guohe++; cout<<"\b玩家2顺到了玩家1的黑桃【过河拆桥】\n"; }
else if(p1[3].guohe!=0) { bol=true; p1[3].guohe--; p2[3].guohe++; cout<<"\b玩家2顺到了玩家1的黑梅【过河拆桥】\n"; }
break; }
case 6:{
cout<<"7\n";
if(p1[0].wuzhong!=0) { bol=true; p1[0].wuzhong--; p2[0].wuzhong++; cout<<"\b玩家2顺到了玩家1的方片【无中生有】\n"; }
else if(p1[1].wuzhong!=0) { bol=true; p1[1].wuzhong--; p2[1].wuzhong++; cout<<"\b玩家2顺到了玩家1的红桃【无中生有】\n"; }
break; }
case 7:{
cout<<"8\n";
if(p1[0].wanjian!=0) { bol=true; p1[0].wanjian--; p2[0].wanjian++; cout<<"\b玩家2顺到了玩家1的方片【万箭齐发】\n"; }
else if(p1[1].wanjian!=0) { bol=true; p1[1].wanjian--; p2[1].wanjian++; cout<<"\b玩家2顺到了玩家1的红桃【万箭齐发】\n"; }
break; }
} //switch
}
}
}
else cout<<"\b玩家1没有手牌你顺个dan啊\n";
p2[lsbl].shunshou--;
_sleep(850);
}
}
else if((p2[0].guohe!=0||p2[1].guohe!=0||p2[2].guohe!=0||p2[3].guohe!=0)&&xxl==5) {
cout<<"\b请选择你使用的过河拆桥\n";
int xxs,xxl,lsbl; bool boll=true,bol=false;
if(p2[0].guohe!=0) cout<<"\b 1、过河拆桥【方片】\n";
if(p2[1].guohe!=0) cout<<"\b 2、过河拆桥【红桃】\n";
if(p2[2].guohe!=0) cout<<"\b 3、过河拆桥【黑桃】\n";
if(p2[3].guohe!=0) cout<<"\b 4、过河拆桥【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【过河拆桥】目标是玩家1,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【过河拆桥】目标是玩家1,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【过河拆桥】目标是玩家1,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【过河拆桥】目标是玩家1,是否使用\n";
cout<<"\b1、是 2、否\n"; cin>>xxs;
if(xxs==1) {
if(sps(2)>=1) {
if(p1[0].wuxie!=0||p1[1].wuxie!=0||p1[2].wuxie!=0||p1[3].wuxie!=0) {
cout<<"\b玩家2使用了【过河拆桥】,玩家1是否使用【无懈可击】\n";
cout<<"\b1、是 2、否\n";
cin>>xxs;
if(xxs==1) {
cout<<"\b玩家1用【无懈可击】无懈了玩家2的过河拆桥,玩家2的【过河拆桥】无效\n";
if(p1[0].wuxie!=0) p1[0].wuxie--;
else if(p1[1].wuxie!=0) p1[1].wuxie--;
else if(p1[2].wuxie!=0) p1[2].wuxie--;
else if(p1[3].wuxie!=0) p1[3].wuxie--;
boll=false;
}
}
if(boll) {
while(1) {
if(bol) break;
int sj=rand()%8;
switch(sj) {
case 0:{
cout<<"1\n";
if(p1[0].sha!=0) { bol=true; p1[0].sha--; cout<<"\b玩家2拆了玩家1的方片【杀】\n"; }
else if(p1[1].sha!=0) { bol=true; p1[1].sha--; cout<<"\b玩家2拆了玩家1的红桃【杀】\n"; }
else if(p1[2].sha!=0) { bol=true; p1[2].sha--; cout<<"\b玩家2拆了玩家1的黑桃【杀】\n"; }
else if(p1[3].sha!=0) { bol=true; p1[3].sha--; cout<<"\b玩家2拆了玩家1的黑梅【杀】\n"; }
break; }
case 1:{
cout<<"2\n";
if(p1[0].shan!=0) { bol=true; p1[0].shan--; cout<<"\b玩家2拆了玩家1的方片【闪】\n"; }
else if(p1[1].shan!=0) { bol=true; p1[1].shan--; cout<<"\b玩家2拆了玩家1的红桃【闪】\n"; }
break; }
case 2:{
cout<<"3\n";
if(p1[0].tao!=0) { bol=true; p1[0].tao--; cout<<"\b玩家2拆了玩家1的方片【桃】\n"; }
else if(p1[1].tao!=0) { bol=true; p1[1].tao--; cout<<"\b玩家2拆了玩家1的红桃【桃】\n"; }
break; }
case 3:{
cout<<"4\n";
if(p1[0].shunshou!=0) { bol=true; p1[0].shunshou--; cout<<"\b玩家2拆了玩家1的方片【顺手牵羊】\n"; }
else if(p1[1].shunshou!=0) { bol=true; p1[1].shunshou--; cout<<"\b玩家2拆了玩家1的红桃【顺手牵羊】\n"; }
else if(p1[2].shunshou!=0) { bol=true; p1[2].shunshou--; cout<<"\b玩家2拆了玩家1的黑桃【顺手牵羊】\n"; }
else if(p1[3].shunshou!=0) { bol=true; p1[3].shunshou--; cout<<"\b玩家2拆了玩家1的黑梅【顺手牵羊】\n"; }
break; }
case 4:{
cout<<"5\n";
if(p1[0].nanman!=0) { bol=true; p1[0].nanman--; cout<<"\b玩家2拆了玩家1的方片【南蛮入侵】\n"; }
else if(p1[1].nanman!=0) { bol=true; p1[1].nanman--; cout<<"\b玩家2拆了玩家1的红桃【南蛮入侵】\n"; }
else if(p1[2].nanman!=0) { bol=true; p1[2].nanman--; cout<<"\b玩家2拆了玩家1的黑桃【南蛮入侵】\n"; }
else if(p1[3].nanman!=0) { bol=true; p1[3].nanman--; cout<<"\b玩家2拆了玩家1的黑梅【南蛮入侵】\n"; }
break; }
case 5:{
cout<<"6\n";
if(p1[0].guohe!=0) { bol=true; p1[0].guohe--; cout<<"\b玩家2拆了玩家1的方片【过河拆桥】\n"; }
else if(p1[1].guohe!=0) { bol=true; p1[1].guohe--; cout<<"\b玩家2拆了玩家1的红桃【过河拆桥】\n"; }
else if(p1[2].guohe!=0) { bol=true; p1[2].guohe--; cout<<"\b玩家2拆了玩家1的黑桃【过河拆桥】\n"; }
else if(p1[3].guohe!=0) { bol=true; p1[3].guohe--; cout<<"\b玩家2拆了玩家1的黑梅【过河拆桥】\n"; }
break; }
case 6:{
cout<<"7\n";
if(p1[0].wuzhong!=0) { bol=true; p1[0].wuzhong--; cout<<"\b玩家2拆了玩家1的方片【无中生有】\n"; }
else if(p1[1].wuzhong!=0) { bol=true; p1[1].wuzhong--; cout<<"\b玩家2拆了玩家1的红桃【无中生有】\n"; }
break; }
case 7:{
cout<<"8\n";
if(p1[0].wanjian!=0) { bol=true; p1[0].wanjian--; cout<<"\b玩家2拆了玩家1的方片【万箭齐发】\n"; }
else if(p1[1].wanjian!=0) { bol=true; p1[1].wanjian--; cout<<"\b玩家2拆了玩家1的红桃【万箭齐发】\n"; }
break; }
} //switch
}
}
}
else cout<<"\b玩家1没有手牌你拆个dan啊\n";
p2[lsbl].guohe--;
_sleep(850);
}
}
else if((p2[0].wuzhong!=0||p2[1].wuzhong!=0)&&xxl==6) {
cout<<"\b 请选择你使用的无中生有\n";
int xxs,xxl,lsbl;
if(p2[0].wuzhong!=0) cout<<"\b 1、无中生有【方片】\n";
if(p2[1].wuzhong!=0) cout<<"\b 2、无中生有【红桃】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b使用方片【无中生有】你可以获得两张牌,是否使用\n";
else if(xxs==2) cout<<"\b使用红桃【无中生有】你可以获得两张牌,是否使用\n";
cout<<"\b1、是 2、否\n";
cin>>xxl;
if(xxl==1) {
cout<<"\b使用成功,获得以下手牌\n";
_sleep(850);
csp2();
_sleep(850);
csp2();
_sleep(850);
p2[lsbl].wuzhong--;
_sleep(750);
}
}
// else if((p2[2].renwang!=0||p2[3].renwang!=0)&&xxl==7) cout<<"\b7、仁王盾 ";
else if((p2[0].nanman!=0||p2[1].nanman!=0||p2[2].nanman!=0||p2[3].nanman!=0)&&xxl==8) {
cout<<"\b 请选择你使用的南蛮入侵\n";
int xxl,xxs,lsbl;
_sleep(750);
if(p2[0].nanman!=0) cout<<"\b 1、南蛮入侵【方片】\n";
if(p2[1].nanman!=0) cout<<"\b 2、南蛮入侵【红桃】\n";
if(p2[2].nanman!=0) cout<<"\b 3、南蛮入侵【黑桃】\n";
if(p2[3].nanman!=0) cout<<"\b 4、南蛮入侵【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【南蛮入侵】目标是所有其他玩家,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【南蛮入侵】目标是所有其他玩家,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【南蛮入侵】目标是所有其他玩家,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【南蛮入侵】目标是所有其他玩家,是否使用\n";
cout<<"\b1、是 2、否 \n"; cin>>xxs;
if(xxs==1) {
cout<<"\b玩家2对所有玩家使用【南蛮入侵】\n";
_sleep(1000);
cout<<"\b玩家1需要使用【杀】或【无懈可击】响应\n";
cout<<"\b请选择你使用的响应牌 \n ";
if(p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0) cout<<"\b1、杀 ";
if(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0) cout<<"\b2、无懈可击 ";
cout<<"\b3、放弃响应\n"; cin>>xxl;
if(xxl==1&&(p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0)) {
cout<<"\b玩家1使用【杀】响应了【南蛮入侵】,未造成伤害\n";
if(p1[0].sha!=0) p1[0].sha--;
else if(p1[1].sha!=0) p1[1].sha--;
else if(p1[2].sha!=0) p1[2].sha--;
else if(p1[3].sha!=0) p1[3].sha--;
}
else if(xxl==2&&(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0)) {
cout<<"\b玩家1使用【无懈可击】响应了【南蛮入侵】,未造成伤害\n";
if(p1[0].wuxie!=0) p1[0].wuxie--;
else if(p1[1].wuxie!=0) p1[1].wuxie--;
else if(p1[2].wuxie!=0) p1[2].wuxie--;
else if(p1[3].wuxie!=0) p1[3].wuxie--;
}
else if(xxl==3) {
cout<<"\b玩家1拒绝响应,受到1点伤害\n";
xl1--; if(winp()!=3) break;
}
}
p2[lsbl].nanman--;
}
else if((p2[0].wanjian!=0||p2[1].wanjian!=0)&&xxl==9) {
cout<<"\b 请选择你使用的万箭齐发\n";
int xxl,xxs,lsbl;
_sleep(750);
if(p2[0].wanjian!=0) cout<<"\b 1、万箭齐发【方片】\n";
if(p2[1].wanjian!=0) cout<<"\b 2、万箭齐发【红桃】\n";
if(p2[2].wanjian!=0) cout<<"\b 3、万箭齐发【黑桃】\n";
if(p2[3].wanjian!=0) cout<<"\b 4、万箭齐发【黑梅】\n";
cin>>xxl; lsbl=xxl-1;
if(xxl==1) cout<<"\b你使用的方片【万箭齐发】目标是所有其他玩家,是否使用\n";
else if(xxl==2) cout<<"\b你使用的红桃【万箭齐发】目标是所有其他玩家,是否使用\n";
else if(xxl==3) cout<<"\b你使用的黑桃【万箭齐发】目标是所有其他玩家,是否使用\n";
else if(xxl==4) cout<<"\b你使用的黑梅【万箭齐发】目标是所有其他玩家,是否使用\n";
cout<<"\b1、是 2、否 \n"; cin>>xxs;
if(xxs==1) {
cout<<"\b玩家2对所有玩家使用【万箭齐发】\n";
_sleep(1000);
cout<<"\b玩家1需要使用【闪】或【无懈可击】响应\n";
cout<<"\b请选择你使用的响应牌 \n ";
if(p2[0].shan!=0||p2[1].shan!=0||p2[2].shan!=0||p2[3].shan!=0) cout<<"\b1、闪 ";
if(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0) cout<<"\b2、无懈可击 ";
cout<<"\b3、放弃响应\n"; cin>>xxl;
if(xxl==1&&(p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0)) {
cout<<"\b玩家1使用【闪】响应了【万箭齐发】,未造成伤害\n";
if(p1[0].shan!=0) p1[0].shan--;
else if(p1[1].shan!=0) p1[1].shan--;
else if(p1[2].shan!=0) p1[2].shan--;
else if(p1[3].shan!=0) p1[3].shan--;
}
else if(xxl==2&&(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0)) {
cout<<"\b玩家1使用【无懈可击】响应了【万箭齐发】,未造成伤害\n";
if(p1[0].wuxie!=0) p1[0].wuxie--;
else if(p1[1].wuxie!=0) p1[1].wuxie--;
else if(p1[2].wuxie!=0) p1[2].wuxie--;
else if(p1[3].wuxie!=0) p1[3].wuxie--;
}
else if(xxl==3) {
cout<<"\b玩家1拒绝响应,受到1点伤害\n";
xl1--; if(winp()!=3) break;
}
}
p2[lsbl].wanjian--;
}
else if(xxl==10) break;
} //玩家1出牌
cout<<"\b玩家2进入弃牌阶段\n";
_sleep(850);
while(sps(2)>xl1) {
cout<"\b请选择你要弃置的牌\n";
int xxs,xxl,lsbl;
if(p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0) cout<<"\b1、杀 ";
if(p2[0].shan!=0||p2[1].shan!=0) cout<<"\b2、闪 ";
if(p2[0].tao!=0||p2[1].tao!=0) cout<<"\b3、桃 ";
if(p2[0].shunshou!=0||p2[1].shunshou!=0||p2[2].shunshou!=0||p2[3].shunshou!=0) cout<<"\b4、顺手牵羊 ";
if(p2[0].guohe!=0||p2[1].guohe!=0||p2[2].guohe!=0||p2[3].guohe!=0) cout<<"\b5、过河拆桥 ";
if(p2[0].wuzhong!=0||p2[1].wuzhong!=0) cout<<"\b6、无中生有 ";
// if(p2[0].renwang!=0||p2[1].renwang!=0||p2[2].renwang!=0||p2[3].renwang!=0) cout<<"\b7、仁王盾 ";
if(p2[0].nanman!=0||p2[1].nanman!=0||p2[2].nanman!=0||p2[3].nanman!=0) cout<<"\b8、南蛮入侵 ";
if(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0) cout<<"\b9、无懈可击 ";
if(p2[0].wanjian!=0||p2[1].wanjian!=0) cout<<"\b10、万箭齐发 ";
cout<<"\n"; cin>>xxl;
if(xxl==1&&(p2[0].sha!=0||p2[1].sha!=0||p2[2].sha!=0||p2[3].sha!=0)) {
cout<<"\b 请选择你弃置的杀\n";
if(p2[0].sha!=0) cout<<"\b 1、杀【方片】\n";
if(p2[1].sha!=0) cout<<"\b 2、杀【红桃】\n";
if(p2[2].sha!=0) cout<<"\b 3、杀【黑桃】\n";
if(p2[3].sha!=0) cout<<"\b 4、杀【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【杀】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【杀】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【杀】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【杀】\n";
p2[lsbl].sha--;
}
if(xxl==2&&(p2[0].shan!=0||p2[1].shan!=0)) {
cout<<"\b 请选择你弃置的闪\n";
if(p2[0].shan!=0) cout<<"\b 1、闪【方片】\n";
if(p2[1].shan!=0) cout<<"\b 2、闪【红桃】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【闪】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【闪】\n";
p2[lsbl].shan--;
}
if(xxl==3&&(p2[0].tao!=0||p2[1].tao!=0)) {
cout<<"\b 请选择你弃置的桃\n";
if(p2[0].tao!=0) cout<<"\b 1、桃【方片】\n";
if(p2[1].tao!=0) cout<<"\b 2、桃【红桃】\n";
if(p2[2].tao!=0) cout<<"\b 3、桃【黑桃】\n";
if(p2[3].tao!=0) cout<<"\b 4、桃【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【桃】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【桃】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【桃】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【桃】\n";
p2[lsbl].tao--;
}
if(xxl==4&&(p2[0].shunshou!=0||p2[1].shunshou!=0||p2[2].shunshou!=0||p2[3].shunshou!=0)) {
cout<<"\b 请选择你弃置的顺手牵羊\n";
if(p2[0].shunshou!=0) cout<<"\b 1、顺手牵羊【方片】\n";
if(p2[1].shunshou!=0) cout<<"\b 2、顺手牵羊【红桃】\n";
if(p2[2].shunshou!=0) cout<<"\b 3、顺手牵羊【黑桃】\n";
if(p2[3].shunshou!=0) cout<<"\b 4、顺手牵羊【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【顺手牵羊】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【顺手牵羊】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【顺手牵羊】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【顺手牵羊】\n";
p2[lsbl].shunshou--;
}
if(xxl==5&&(p2[0].guohe!=0||p2[1].guohe!=0||p2[2].guohe!=0||p2[3].guohe!=0)) {
cout<<"\b 请选择你弃置的过河拆桥\n";
if(p2[0].guohe!=0) cout<<"\b 1、过河拆桥【方片】\n";
if(p2[1].guohe!=0) cout<<"\b 2、过河拆桥【红桃】\n";
if(p2[2].guohe!=0) cout<<"\b 3、过河拆桥【黑桃】\n";
if(p2[3].guohe!=0) cout<<"\b 4、过河拆桥【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【过河拆桥】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【过河拆桥】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【过河拆桥】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【过河拆桥】\n";
p2[lsbl].guohe--;
}
if(xxl==6&&(p2[0].wuzhong!=0||p2[1].wuzhong!=0)) {
cout<<"\b 请选择你弃置的无中生有\n";
if(p2[0].wuzhong!=0) cout<<"\b 1、无中生有【方片】\n";
if(p2[1].wuzhong!=0) cout<<"\b 2、无中生有【红桃】\n";
if(p2[2].wuzhong!=0) cout<<"\b 3、无中生有【黑桃】\n";
if(p2[3].wuzhong!=0) cout<<"\b 4、无中生有【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【无中生有】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【无中生有】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【无中生有】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【无中生有】\n";
p2[lsbl].wuzhong--;
}
if(xxl==8&&(p2[0].nanman!=0||p2[1].nanman!=0||p2[2].nanman!=0||p2[3].nanman!=0)) {
cout<<"\b 请选择你弃置的南蛮入侵\n";
if(p2[0].nanman!=0) cout<<"\b 1、南蛮入侵【方片】\n";
if(p2[1].nanman!=0) cout<<"\b 2、南蛮入侵【红桃】\n";
if(p2[2].nanman!=0) cout<<"\b 3、南蛮入侵【黑桃】\n";
if(p2[3].nanman!=0) cout<<"\b 4、南蛮入侵【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【南蛮入侵】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【南蛮入侵】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【南蛮入侵】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【南蛮入侵】\n";
p2[lsbl].nanman--;
}
if(xxl==9&&(p2[0].wuxie!=0||p2[1].wuxie!=0||p2[2].wuxie!=0||p2[3].wuxie!=0)) {
cout<<"\b 请选择你弃置的无懈可击\n";
if(p2[0].wuxie!=0) cout<<"\b 1、无懈可击【方片】\n";
if(p2[1].wuxie!=0) cout<<"\b 2、无懈可击【红桃】\n";
if(p2[2].wuxie!=0) cout<<"\b 3、无懈可击【黑桃】\n";
if(p2[3].wuxie!=0) cout<<"\b 4、无懈可击【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【无懈可击】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【无懈可击】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【无懈可击】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【无懈可击】\n";
p2[lsbl].wuxie--;
}
if(xxl==10&&(p2[0].wanjian!=0||p2[1].wanjian!=0)) {
cout<<"\b 请选择你弃置的万箭齐发\n";
if(p2[0].wanjian!=0) cout<<"\b 1、万箭齐发【方片】\n";
if(p2[1].wanjian!=0) cout<<"\b 2、万箭齐发【红桃】\n";
if(p2[2].wanjian!=0) cout<<"\b 3、万箭齐发【黑桃】\n";
if(p2[3].wanjian!=0) cout<<"\b 4、万箭齐发【黑梅】\n";
cin>>xxs; lsbl=xxs-1;
if(xxs==1) cout<<"\b玩家2弃置了方片【万箭齐发】\n";
else if(xxs==2) cout<<"\b玩家2弃置了红桃【万箭齐发】\n";
else if(xxs==3) cout<<"\b玩家2弃置了黑桃【万箭齐发】\n";
else if(xxs==4) cout<<"\b玩家2弃置了黑梅【万箭齐发】\n";
p2[lsbl].wanjian--;
}
} cout<<"\b玩家2弃牌阶段结束\n"; _sleep(1000);
}
if(winp()==1) cout<<"\n\b玩家1胜利";
else if(winp()==2) cout<<"\n\b玩家2胜利";
//完结撒花
return 0;
}剪贴板
剪贴板 syn97u5q
剪贴板信息
剪贴板信息
- 收录
- 更新