diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-30 23:42:18 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-30 23:42:18 +0800 |
commit | 715542867ba891acf8c1fd6234f5d6ea2fc285f6 (patch) | |
tree | 35727b8664dce3eb0f7421dd0cbb28c6636c672b /mbbsd/gomo.c | |
parent | 05df0b0f9445089d03f7a2933875b9c7266eb96e (diff) | |
download | pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.gz pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.bz2 pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.lz pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.xz pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.tar.zst pttbbs-715542867ba891acf8c1fd6234f5d6ea2fc285f6.zip |
Reversi (multiplayer othello) added
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gomo.c')
-rw-r--r-- | mbbsd/gomo.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index 71f0bbfc..e3664176 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -26,7 +26,7 @@ static void gomo_init_user_userec(const userec_t* urec, ChessUser* user); static void gomo_init_board(board_t board); static void gomo_drawline(const ChessInfo* info, int line); static void gomo_movecur(int r, int c); -static void gomo_prepare_play(ChessInfo* info); +static int gomo_prepare_play(ChessInfo* info); static int gomo_select(ChessInfo* info, rc_t location, ChessGameResult* result); static void gomo_prepare_step(ChessInfo* info, const gomo_step_t* step); @@ -42,7 +42,7 @@ const static ChessActions gomo_actions = { &gomo_drawline, &gomo_movecur, &gomo_prepare_play, - NULL, + NULL, /* process_key */ &gomo_select, (void (*)(ChessInfo*, const void*)) &gomo_prepare_step, (ChessGameResult (*)(void*, const void*)) &gomo_apply_step, @@ -323,11 +323,13 @@ gomo_movecur(int r, int c) move(r + 2, c * 2 + 3); } -static void +static int gomo_prepare_play(ChessInfo* info) { if (!gomo_move_warn(*(int*) info->tag, info->warnmsg)) info->warnmsg[0] = 0; + + return 0; } static int |