summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-04 17:29:11 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-04 17:29:11 +0800
commit269e51250f5b70785a3aabddb17a7eafa295a101 (patch)
treeaf048ae20af9429c993a5705549b50b57b6ea645 /mbbsd
parent45cf571a04e8a8781c1664cc6e993f4a09118e07 (diff)
downloadpttbbs-269e51250f5b70785a3aabddb17a7eafa295a101.tar
pttbbs-269e51250f5b70785a3aabddb17a7eafa295a101.tar.gz
pttbbs-269e51250f5b70785a3aabddb17a7eafa295a101.tar.bz2
pttbbs-269e51250f5b70785a3aabddb17a7eafa295a101.tar.lz
pttbbs-269e51250f5b70785a3aabddb17a7eafa295a101.tar.xz
pttbbs-269e51250f5b70785a3aabddb17a7eafa295a101.tar.zst
pttbbs-269e51250f5b70785a3aabddb17a7eafa295a101.zip
correcting go's output
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2114 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/go.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/mbbsd/go.c b/mbbsd/go.c
index 6834e8fb..18f04120 100644
--- a/mbbsd/go.c
+++ b/mbbsd/go.c
@@ -614,9 +614,16 @@ void
GO_cleantable()
{
int i, j;
- for(i = 0; i < BRDSIZ; ++i)
- for(j = 0; j < BRDSIZ; ++j)
+
+ move(1, 5);
+ for (i = 0; i < BRDSIZ; ++i)
+ prints("%c ", locE[i]);
+ for (i = 0; i < BRDSIZ; ++i) {
+ move(2 + i, 0);
+ prints("%3d", BRDSIZ - i);
+ for (j = 0; j < BRDSIZ; ++j)
GO_blank(i, j);
+ }
}
int
@@ -746,6 +753,7 @@ gochess(int fd)
move(10, 46);
+ clrtoeol();
if (totalgo > 0)
{
if (pool[totalgo - 1].x == -1 || pool[totalgo - 1].y == -1)
@@ -757,6 +765,7 @@ gochess(int fd)
for (i = totalgo - 1;i > 0 && totalgo - i <= 10;i--)
{
move(10 + totalgo - i, 46);
+ clrtoeol();
if (pool[i - 1].x == -1 || pool[i - 1].y == -1)
prints("%s #%-3d PASS", win ? bw_chess[(i - 1) & 1] : bw_chess[i & 1], i);
else
@@ -1273,9 +1282,11 @@ GoBot(void)
for(;;)
{
move(8, 46);
+ clrtoeol();
prints("½ü¨ì %s ¤è¤U¤F....", bw_chess[me - 1]);
move(10, 46);
+ clrtoeol();
if (totalgo > 0)
{
if (pool[totalgo - 1].x == -1 || pool[totalgo - 1].y == -1)
@@ -1287,6 +1298,7 @@ GoBot(void)
for (i = totalgo - 1;i > 0 && totalgo - i <= 10;i--)
{
move(10 + totalgo - i, 46);
+ clrtoeol();
if (pool[i - 1].x == -1 || pool[i - 1].y == -1)
prints("%s #%-3d PASS", bw_chess[(i - 1) % 2], i);
else