-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zeus_glb
committed
Oct 21, 2021
1 parent
c4b64c4
commit 1cc2133
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Lab8的在原来Lab7的基础上增加悔棋的功能。 | ||
|
||
|
||
|
||
**(1) 单人模式下的悔棋** | ||
|
||
每个用户在启动时都有3次悔棋的机会(次数需定义为一个可重新设初值的常量)。每次移动完成,并显示出结果后,在执行下一次操作之前,如果悔棋机会还没有用完,则提示用户: | ||
|
||
你还有有[n]次悔棋的机会,你要悔棋吗? | ||
|
||
单人模式下可以连续悔棋,直到悔棋机会用完。如果选择了悔棋,盘面和得分需要恢复为上次的得分。 | ||
|
||
**(2) 日志中增加悔棋日志** | ||
|
||
**日志格式:** | ||
|
||
悔棋扣除得分: 默认用户 2021/05/21/8:25:45 -12 | ||
|
||
如果上一次的得分包括了bouns,也需要扣除 | ||
|
||
**(3)双人模式下的悔棋** | ||
|
||
不能连续悔棋,只有上次的移动操作是自己才能悔棋。 |