diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-10-03 16:27:44 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-10-03 16:27:44 +0800 |
commit | 2bf8739a0abe5032097d3ddb8d1fd0da8256afa8 (patch) | |
tree | 3cf0c2204a3ab5c8b81ca9aa90dceb321bc4929a /mbbsd | |
parent | 233e3205df3f43bf54ed366333fc71340ca71bef (diff) | |
download | pttbbs-2bf8739a0abe5032097d3ddb8d1fd0da8256afa8.tar pttbbs-2bf8739a0abe5032097d3ddb8d1fd0da8256afa8.tar.gz pttbbs-2bf8739a0abe5032097d3ddb8d1fd0da8256afa8.tar.bz2 pttbbs-2bf8739a0abe5032097d3ddb8d1fd0da8256afa8.tar.lz pttbbs-2bf8739a0abe5032097d3ddb8d1fd0da8256afa8.tar.xz pttbbs-2bf8739a0abe5032097d3ddb8d1fd0da8256afa8.tar.zst pttbbs-2bf8739a0abe5032097d3ddb8d1fd0da8256afa8.zip |
Use fency game board in GO and GOMOKU
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/go.c | 16 | ||||
-rw-r--r-- | mbbsd/gomo.c | 12 |
2 files changed, 14 insertions, 14 deletions
@@ -475,15 +475,16 @@ static void go_drawline(const ChessInfo* info, int line) { const static char* const BoardPic[] = { - "¢z", "¢s", "¢{", - "¢u", "¢q", "¢t", - "¢|", "¢r", "¢}" + "ùÝ", "ùç", "ùç", "ùß", + "ùò", "¢q", "¢q", "ùô", + "ùò", "¢q", "¡Ï", "ùô", + "ùã", "ùí", "ùí", "ùå", }; const static int BoardPicIndex[] = - { 0, 1, 1, 1, 1, + { 0, 1, 1, 2, 1, + 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, - 1, 1, 1, 2 }; + 2, 1, 1, 3 }; board_p board = (board_p) info->board; go_tag_t* tag = (go_tag_t*) info->tag; @@ -498,8 +499,7 @@ go_drawline(const ChessInfo* info, int line) } else if (line >= 2 && line <= 20) { const int board_line = line - 2; const char* const* const pics = - board_line == 0 ? &BoardPic[0] : - board_line == BRDSIZ - 1 ? &BoardPic[6] : &BoardPic[3]; + &BoardPic[BoardPicIndex[board_line] * 4]; int i; prints("%2d" ANSI_COLOR(30;43), 21 - line); diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index e3664176..bba65cf0 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -279,12 +279,13 @@ static void gomo_drawline(const ChessInfo* info, int line) { const static char* const BoardPic[] = { - "¢z", "¢s", "¢{", - "¢u", "¢q", "¢t", - "¢|", "¢r", "¢}" + "ùÝ", "ùç", "ùç", "ùß", + "ùò", "¢q", "¢q", "ùô", + "ùò", "¢q", "¡Ï", "ùô", + "ùã", "ùí", "ùí", "ùå", }; const static int BoardPicIndex[] = - { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2 }; + { 0, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3 }; board_p board = (board_p) info->board; @@ -298,8 +299,7 @@ gomo_drawline(const ChessInfo* info, int line) } else if (line >= 2 && line <= 16) { const int board_line = line - 2; const char* const* const pics = - board_line == 0 ? &BoardPic[0] : - board_line == BRDSIZ - 1 ? &BoardPic[6] : &BoardPic[3]; + &BoardPic[BoardPicIndex[board_line] * 4]; int i; prints("%3d" ANSI_COLOR(30;43), 17 - line); |