diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-28 22:14:13 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-28 22:14:13 +0800 |
commit | 86bdba90da39470708f7ec70883b9603b6b2c37d (patch) | |
tree | c671ef34379ff87b4965e26d8be9fe78c60d19f4 /mbbsd | |
parent | 4cfc18ee2c158e7e843a5a824203d63efaa86494 (diff) | |
download | pttbbs-86bdba90da39470708f7ec70883b9603b6b2c37d.tar pttbbs-86bdba90da39470708f7ec70883b9603b6b2c37d.tar.gz pttbbs-86bdba90da39470708f7ec70883b9603b6b2c37d.tar.bz2 pttbbs-86bdba90da39470708f7ec70883b9603b6b2c37d.tar.lz pttbbs-86bdba90da39470708f7ec70883b9603b6b2c37d.tar.xz pttbbs-86bdba90da39470708f7ec70883b9603b6b2c37d.tar.zst pttbbs-86bdba90da39470708f7ec70883b9603b6b2c37d.zip |
Add color for gomo board. (The same way as in GO)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2148 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/gomo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index fcfdf4fb..9fbd849b 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -9,6 +9,9 @@ static char ku[BRDSIZ][BRDSIZ]; static Horder_t *v; +#define move(y,x) move(y, (x) + ((y) < 2 || (y) > 16 ? 0 : \ + (x) > 35 ? 11 : 8)) + /* pattern and advance map */ static int @@ -472,6 +475,7 @@ gomoku(int fd) } my->turn = 1; } + redoscr(); continue; } if (my->turn) { @@ -506,6 +510,7 @@ gomoku(int fd) move(15, 40); clrtoeol(); } + redoscr(); } } add_io(0, 0); |