From 544b6475f029f5396bea9ebca0994111e74d1200 Mon Sep 17 00:00:00 2001 From: scw Date: Sun, 28 Aug 2005 14:36:54 +0000 Subject: Chess functions: * chc machine readable log - http://www.elephantbase.net/protocol/cchess_pgn.htm - http://www.elephantbase.net/protocol/cchess_move.htm * chc and gomoku replay work * key binding 'z' in pmore() for chess replay * avoid crash when watching (the watchee's mateid is empty) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3105 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/chess.h | 1 + include/proto.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/chess.h b/include/chess.h index 8a151ace..904db6cf 100644 --- a/include/chess.h +++ b/include/chess.h @@ -175,6 +175,7 @@ void ChessPlay(ChessInfo* info); int ChessStartGame(char func_char, int sig, const char* title); int ChessWatchGame(void (*play)(int, ChessGameMode), int game, const char* title); +int ChessReplayGame(const char* fname); ChessInfo* NewChessInfo(const ChessActions* actions, const ChessConstants* constants, int sock, ChessGameMode mode); diff --git a/include/proto.h b/include/proto.h index 7a33212b..4c0003d2 100644 --- a/include/proto.h +++ b/include/proto.h @@ -197,6 +197,7 @@ void chc(int s, ChessGameMode mode); int chc_main(void); int chc_personal(void); int chc_watch(void); +ChessInfo* chc_replay(FILE* fp); /* chicken */ void ch_buyitem(int money, const char *picture, int *item, int haveticket); @@ -297,6 +298,7 @@ void gomoku(int s, ChessGameMode mode); int gomoku_main(void); int gomoku_personal(void); int gomoku_watch(void); +ChessInfo* gomoku_replay(FILE* fp); /* guess */ int guess_main(void); -- cgit v1.2.3