小bug
This commit is contained in:
parent
24618eef54
commit
000670f603
1 changed files with 13 additions and 4 deletions
15
ex6/ex6.cpp
15
ex6/ex6.cpp
|
@ -90,10 +90,13 @@ Begin:
|
|||
int round = 1;
|
||||
int finish_num = 0;
|
||||
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);
|
||||
A:
|
||||
|
||||
if (p1.getSize())
|
||||
{
|
||||
|
||||
|
@ -115,7 +118,7 @@ Begin:
|
|||
pass_num++;
|
||||
goto B;
|
||||
}
|
||||
|
||||
A:
|
||||
printf("1出牌2查看牌堆");
|
||||
scanf("%d", &opt);
|
||||
switch (opt)
|
||||
|
@ -152,6 +155,8 @@ Begin:
|
|||
goto A;
|
||||
}
|
||||
}
|
||||
else
|
||||
printf("鯤소A쫴왕\n");
|
||||
B:
|
||||
if (p2.getSize())
|
||||
{
|
||||
|
@ -188,6 +193,8 @@ Begin:
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
printf("鯤소B쫴왕\n");
|
||||
C:
|
||||
if (p3.getSize())
|
||||
{
|
||||
|
@ -224,6 +231,8 @@ Begin:
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
printf("鯤소C쫴왕\n");
|
||||
round++;
|
||||
}
|
||||
printf("=====================================\n");
|
||||
|
|
Reference in a new issue