summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/gomo.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 9fbd849b..8d98c660 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -309,7 +309,26 @@ gomoku(int fd)
prints("\033[1;46m 五子棋對戰 \033[45m%30s VS %-30s\033[m",
cuser.userid, my->mateid);
- show_file("etc/@five", 1, -1, ONLY_COLOR);
+ //show_file("etc/@five", 1, -1, ONLY_COLOR);
+ move(1, 0);
+ outs(
+ " A B C D E F G H I J K L M N\n"
+ " 15\033[30;43m┌┬┬┬┬┬┬┬┬┬┬┬┬┬┐\033[m\n"
+ " 14\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m [q] 認輸離開\n"
+ " 13\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m [u] 悔棋 \n"
+ " 12\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m [p] 要求和棋\n"
+ " 11\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 10\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 9\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 8\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m [歡迎到five_chess討論五子棋喔]\n"
+ " 7\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 6\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 5\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 4\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 3\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 2\033[30;43m├┼┼┼┼┼┼┼┼┼┼┼┼┼┤\033[m\n"
+ " 1\033[30;43m└┴┴┴┴┴┴┴┴┴┴┴┴┴┘\033[m\n"
+ );
move(11, 40);
prints("我是 %s", me == BBLACK ? "先手 ●, 有禁手" : "後手 ○");
move(16, 40);
@@ -389,6 +408,7 @@ gomoku(int fd)
HO_undo(&mv);
tick = mylasttick;
my->turn = 1;
+ redoscr();
continue;
} else
break;
@@ -449,6 +469,7 @@ gomoku(int fd)
tick = hislasttick;
HO_undo(&mv);
my->turn = 0;
+ redoscr();
continue;
}
if (!my->turn) {