diff options
Diffstat (limited to 'mbbsd/othello.c')
-rw-r--r-- | mbbsd/othello.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/othello.c b/mbbsd/othello.c index eba90375..0eac4441 100644 --- a/mbbsd/othello.c +++ b/mbbsd/othello.c @@ -21,9 +21,9 @@ #define INVERT(COLOR) (((COLOR))==WHITE?BLACK:WHITE) static char nowx = 3, nowy = 3; -static char *CHESS_TYPE[] = {NONE_CHESS, HINT_CHESS, BLACK_CHESS, WHITE_CHESS}; -static char DIRX[] = {-1, -1, -1, 0, 1, 1, 1, 0}; -static char DIRY[] = {-1, 0, 1, 1, 1, 0, -1, -1}; +const static char *CHESS_TYPE[] = {NONE_CHESS, HINT_CHESS, BLACK_CHESS, WHITE_CHESS}; +const static char DIRX[] = {-1, -1, -1, 0, 1, 1, 1, 0}; +const static char DIRY[] = {-1, 0, 1, 1, 1, 0, -1, -1}; static char number[2]; static char pass = 0; @@ -41,7 +41,7 @@ static char nowboard[10][10] = {-1, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, -1}, {-1, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, -1}, {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}}; -static char init_table[NR_TABLE + 1][5][5] = { +const static char init_table[NR_TABLE + 1][5][5] = { {{0, 0, 0, 0, 0}, {0, 30, -3, 2, 2}, {0, -3, -3, -1, -1}, |