From 45cf571a04e8a8781c1664cc6e993f4a09118e07 Mon Sep 17 00:00:00 2001 From: scw Date: Sun, 4 Jul 2004 07:55:01 +0000 Subject: GO game merged from FPG. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2113 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/bbs.h | 1 - include/modes.h | 4 +++- include/proto.h | 4 ++++ include/pttstruct.h | 6 ++++++ 4 files changed, 13 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/bbs.h b/include/bbs.h index 075db9a7..45ca1292 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -65,7 +65,6 @@ #include "modes.h" #include "chc.h" #include "proto.h" -#include "gomo.h" #ifdef ASSESS #include "assess.h" diff --git a/include/modes.h b/include/modes.h index 6d0cacf6..d4f8c926 100644 --- a/include/modes.h +++ b/include/modes.h @@ -99,7 +99,8 @@ #define REEDIT 79 #define BLOGGING 80 #define CHESSWATCHING 81 -#define MODE_MAX 81 /* 所有其他選單動態須在此之前 */ +#define GO 82 +#define MODE_MAX 82 /* 所有其他選單動態須在此之前 */ /* menu.c 中的模式 */ #define QUIT 0x666 /* Return value to abort recursive functions */ @@ -156,6 +157,7 @@ enum {STRIP_ALL = 0, ONLY_COLOR, NO_RELOAD}; #define SIG_GOMO 3 #define SIG_CHC 4 #define SIG_DARK 5 +#define SIG_GO 6 /* talk.c 中的模式 */ #define WATERBALL_GENERAL 0 diff --git a/include/proto.h b/include/proto.h index b0307d54..53d606b0 100644 --- a/include/proto.h +++ b/include/proto.h @@ -254,6 +254,10 @@ int ticket_main(void); int openticket(int bid); int ticket(int bid); +/* go */ +int gochess(int fd); +int GoBot(void); + /* gomo */ int gomoku(int fd); diff --git a/include/pttstruct.h b/include/pttstruct.h index 6c4dbf1e..a6863a96 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -509,6 +509,12 @@ typedef struct int recno; } TagItem; +/* type in gomo.c, structure passing through socket */ +typedef struct { + char x; + char y; +} Horder_t; + #ifdef OUTTACACHE typedef struct { int index; // 在 SHM->uinfo[index] -- cgit v1.2.3