This commit is contained in:
iridiumR 2021-10-28 00:20:29 +08:00
parent 24618eef54
commit 000670f603

View file

@ -90,10 +90,13 @@ Begin:
int round = 1; int round = 1;
int finish_num = 0; int finish_num = 0;
printf("发牌完成,选择你的操作:\n"); printf("发牌完成,选择你的操作:\n");
while (finish_num < 3) while (finish_num < 2&&round<54)
{ {
if (pass_num > 3 - finish_num)
pass_num = 3 - finish_num;
printf("+++++===========================+++++\n 轮次%d \n+++++===========================+++++\n", round); printf("+++++===========================+++++\n 轮次%d \n+++++===========================+++++\n", round);
A:
if (p1.getSize()) if (p1.getSize())
{ {
@ -115,7 +118,7 @@ Begin:
pass_num++; pass_num++;
goto B; goto B;
} }
A:
printf("1出牌2查看牌堆"); printf("1出牌2查看牌堆");
scanf("%d", &opt); scanf("%d", &opt);
switch (opt) switch (opt)
@ -152,6 +155,8 @@ Begin:
goto A; goto A;
} }
} }
else
printf("鯤소A쫴왕\n");
B: B:
if (p2.getSize()) if (p2.getSize())
{ {
@ -188,6 +193,8 @@ Begin:
} }
} }
} }
else
printf("鯤소B쫴왕\n");
C: C:
if (p3.getSize()) if (p3.getSize())
{ {
@ -224,6 +231,8 @@ Begin:
} }
} }
} }
else
printf("鯤소C쫴왕\n");
round++; round++;
} }
printf("=====================================\n"); printf("=====================================\n");