forked from panjd123/Surakarta
-
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
Showing
1 changed file
with
26 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,26 @@ | ||
# 第三阶段报告 | ||
|
||
## 附加任务完成情况 | ||
1. ***完善```AI```***: 实现了本地和联机时```AI```托管 | ||
2. ***Task2***: 在重现对局中实现```播放```,```暂停```,```上一步```,```下一步```,```到第_步```等功能 | ||
3. ***Task4***: 完善网络部分1---实现结束后客户端发送```READY_OP```表示准备再来一局 | ||
4. ***Task6***: 完善网络部分3---实现服务端棋盘GUI界面,并可以随时选择显示或不显示棋盘 | ||
|
||
## 游戏逻辑 | ||
1. ***移动提示***: 在玩家选中一枚棋子之后,点击```提示```按钮,可以移动到的位置会变为```红色``` | ||
2. 显示倒计时,```CurrentPlayer```等***游戏信息*** | ||
3. 对局结束后显示```EndReason```, ```Winner```, ```步数```, ```净胜子数```等***结算信息*** | ||
4. 保存***行棋记录***到本地,并且可以用这段编码复现对局 | ||
5. 实现了***任意路***棋盘 | ||
|
||
## 联机逻辑部分 | ||
这一阶段我们成功搭建了服务端和客户端的连接,实现了server和client之间信号的发送以及棋盘的同步更新。 | ||
|
||
## 遇到的困难 | ||
在实现旋吃动画的过程中,发现在棋子进行动画效果之后,更新棋子的```position```成员数据时,会计算**之前**的```position1```和**当前**```position1```的偏移量,进而在动画移动后的位置移动偏移量至新的位置,而不是```position2```**实际**的位置,怀疑这是某种优化算法,现在还没有一个比较好的办法进行解决,所以决定暂时将动画实现搁置。 | ||
|
||
## 分工 | ||
王艺杭: 完成了游戏逻辑的完善,客户端的实现,以及部分附加任务 | ||
钟进艺:完成服务端的实现,以及部分附加任务的实现 | ||
吴政坤:精神鼓励 | ||
|