diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-28 22:23:49 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-28 22:23:49 +0800 |
commit | 758b693a6d2c00ba208b1fc8062e51b3b0564ffd (patch) | |
tree | 4124d5b59b75f93ad68e62e80dd786374f61c223 | |
parent | 86bdba90da39470708f7ec70883b9603b6b2c37d (diff) | |
download | pttbbs-758b693a6d2c00ba208b1fc8062e51b3b0564ffd.tar pttbbs-758b693a6d2c00ba208b1fc8062e51b3b0564ffd.tar.gz pttbbs-758b693a6d2c00ba208b1fc8062e51b3b0564ffd.tar.bz2 pttbbs-758b693a6d2c00ba208b1fc8062e51b3b0564ffd.tar.lz pttbbs-758b693a6d2c00ba208b1fc8062e51b3b0564ffd.tar.xz pttbbs-758b693a6d2c00ba208b1fc8062e51b3b0564ffd.tar.zst pttbbs-758b693a6d2c00ba208b1fc8062e51b3b0564ffd.zip |
Buildin gomo board, etc/@five no longer needed.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2149 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/gomo.c | 23 |
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) { |