diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-21 17:26:02 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-21 17:26:02 +0800 |
commit | e9a7b75babb76e1a3341161bcb6e80f3753b83c7 (patch) | |
tree | 04debdc816cd5405bba70904a1eea16ca6fca663 /mbbsd/chc_rule.c | |
parent | 1428a82d1644166fdaa5285c67f236ac02687818 (diff) | |
download | pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.gz pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.bz2 pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.lz pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.xz pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.zst pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.zip |
indent -i4
fix indent's word error
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chc_rule.c')
-rw-r--r-- | mbbsd/chc_rule.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mbbsd/chc_rule.c b/mbbsd/chc_rule.c index 62996764..df7964a1 100644 --- a/mbbsd/chc_rule.c +++ b/mbbsd/chc_rule.c @@ -1,9 +1,9 @@ -/* $Id: chc_rule.c,v 1.3 2002/07/05 17:10:27 in2 Exp $ */ +/* $Id: chc_rule.c,v 1.4 2002/07/21 09:26:02 in2 Exp $ */ #include "bbs.h" #define CENTER(a, b) (((a) + (b)) >> 1) -void +void chc_init_board(board_t board) { memset(board, 0, sizeof(board_t)); @@ -26,14 +26,14 @@ chc_init_board(board_t board) board[6][6] = board[6][8] = CHE(7, chc_my); /* §L */ } -void +void chc_movechess(board_t board) { board[chc_to.r][chc_to.c] = board[chc_from.r][chc_from.c]; board[chc_from.r][chc_from.c] = 0; } -static int +static int dist(rc_t from, rc_t to, int rowcol) { int d; @@ -42,7 +42,7 @@ dist(rc_t from, rc_t to, int rowcol) return d > 0 ? d : -d; } -static int +static int between(board_t board, rc_t from, rc_t to, int rowcol) { int i, rtv = 0; @@ -63,7 +63,7 @@ between(board_t board, rc_t from, rc_t to, int rowcol) return rtv; } -int +int chc_canmove(board_t board, rc_t from, rc_t to) { int i; @@ -152,7 +152,7 @@ chc_canmove(board_t board, rc_t from, rc_t to) return 1; } -static void +static void findking(board_t board, int turn, rc_t * buf) { int i, r, c; @@ -167,7 +167,7 @@ findking(board_t board, int turn, rc_t * buf) } } -int +int chc_iskfk(board_t board) { rc_t from, to; @@ -179,7 +179,7 @@ chc_iskfk(board_t board) return 0; } -int +int chc_ischeck(board_t board, int turn) { rc_t from, to; |