diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-01 22:46:17 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-01 22:46:17 +0800 |
commit | 947b76093a20c3f08f774bf8a4a03e7688b29927 (patch) | |
tree | e68a234ee396d797a6edd199ee153d4d6da3dff1 | |
parent | 4e3e46136dea38519a94693c41e7f9d637a6f4d1 (diff) | |
download | pttbbs-947b76093a20c3f08f774bf8a4a03e7688b29927.tar pttbbs-947b76093a20c3f08f774bf8a4a03e7688b29927.tar.gz pttbbs-947b76093a20c3f08f774bf8a4a03e7688b29927.tar.bz2 pttbbs-947b76093a20c3f08f774bf8a4a03e7688b29927.tar.lz pttbbs-947b76093a20c3f08f774bf8a4a03e7688b29927.tar.xz pttbbs-947b76093a20c3f08f774bf8a4a03e7688b29927.tar.zst pttbbs-947b76093a20c3f08f774bf8a4a03e7688b29927.zip |
* chc machine-readable log reflected
* chc replaying put red on bottom
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3123 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/chc.c | 4 | ||||
-rw-r--r-- | mbbsd/chess.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c index d14baf3c..76725a97 100644 --- a/mbbsd/chc.c +++ b/mbbsd/chc.c @@ -282,9 +282,9 @@ chc_log_machine_step(FILE* fp, board_t board, const drc_t *step) * the red side at bottom, so that a rotation is needed. */ fprintf(fp, "%c%c%d%c%c%d ", chess_char[CHE_P(board[step->from.r][step->from.c])], - BRD_COL - step->from.c - 1 + 'a', BRD_ROW - step->from.r - 1, + step->from.c + 'a', BRD_ROW - step->from.r - 1, board[step->to.r][step->to.c] ? 'x' : '-', - BRD_COL - step->to.c - 1 + 'a', BRD_ROW - step->to.r - 1 + step->to.c + 'a', BRD_ROW - step->to.r - 1 ); } diff --git a/mbbsd/chess.c b/mbbsd/chess.c index cc7a4a47..900b39c7 100644 --- a/mbbsd/chess.c +++ b/mbbsd/chess.c @@ -1398,6 +1398,8 @@ NewChessInfo(const ChessActions* actions, const ChessConstants* constants, info->myturn = currutmp->turn; else if (mode == CHESS_MODE_PERSONAL) info->myturn = 1; + else if (mode == CHESS_MODE_REPLAY) + info->myturn = 1; else if (mode == CHESS_MODE_WATCH) ChessReceiveWatchInfo(info); |