diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-02 16:38:42 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-02 16:38:42 +0800 |
commit | ce50463a745c2a9af1f4310de6a12a2a461c97f1 (patch) | |
tree | 31c589739ddd4ecd6f144790dafb6fea654685e6 /mbbsd/othello.c | |
parent | 17cd044b7ce599bd480b4c2bff0eab42c9e2bb05 (diff) | |
download | pttbbs-ce50463a745c2a9af1f4310de6a12a2a461c97f1.tar pttbbs-ce50463a745c2a9af1f4310de6a12a2a461c97f1.tar.gz pttbbs-ce50463a745c2a9af1f4310de6a12a2a461c97f1.tar.bz2 pttbbs-ce50463a745c2a9af1f4310de6a12a2a461c97f1.tar.lz pttbbs-ce50463a745c2a9af1f4310de6a12a2a461c97f1.tar.xz pttbbs-ce50463a745c2a9af1f4310de6a12a2a461c97f1.tar.zst pttbbs-ce50463a745c2a9af1f4310de6a12a2a461c97f1.zip |
merge from trunk:1680.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.brc2@1682 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/othello.c')
-rw-r--r-- | mbbsd/othello.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mbbsd/othello.c b/mbbsd/othello.c index 96fea2e2..b4625a58 100644 --- a/mbbsd/othello.c +++ b/mbbsd/othello.c @@ -95,7 +95,7 @@ printboard() print_chess(4, 5, BLACK); print_chess(5, 4, BLACK); move(3, 56); - prints("(黑)%s", cuser.userid); + prints("(黑)%s", cuser->userid); move(3, 72); prints(": 02"); move(4, 56); @@ -229,7 +229,7 @@ end_of_game(int quit) fp1 = fopen(SECRET, "a"); if (fp1) { fprintf(fp1, "%d,%d,%s,%02d,%02d\n", think, which_table, - cuser.userid, number[0], number[1]); + cuser->userid, number[0], number[1]); fclose(fp1); } } @@ -239,7 +239,7 @@ end_of_game(int quit) fclose(fp); return; } - fprintf(fp, "在%s級中, %s臨陣脫逃\n", opponent[think], cuser.userid); + fprintf(fp, "在%s級中, %s臨陣脫逃\n", opponent[think], cuser->userid); if (fp) fclose(fp); return; @@ -252,7 +252,7 @@ end_of_game(int quit) demoney(200); if (fp) fprintf(fp, "在%s級中, %s以 %02d:%02d 贏了電腦%02d子\n", - opponent[think], cuser.userid, number[0], number[1], + opponent[think], cuser->userid, number[0], number[1], number[0] - number[1]); } else if (number[1] > number[0]) { prints("電腦贏了你%02d子", number[1] - number[0]); @@ -260,16 +260,16 @@ end_of_game(int quit) fprintf(fp, "在%s級中, ", opponent[think]); if (number[1] - number[0] > 20) fprintf(fp, "電腦以 %02d:%02d 慘電%s %02d子\n", number[1], - number[0], cuser.userid, number[1] - number[0]); + number[0], cuser->userid, number[1] - number[0]); else fprintf(fp, "電腦以 %02d:%02d 贏了%s %02d子\n", number[1], - number[0], cuser.userid, number[1] - number[0]); + number[0], cuser->userid, number[1] - number[0]); } } else { prints("你和電腦打成平手!!"); if (fp) fprintf(fp, "在%s級中, %s和電腦以 %02d:%02d 打成了平手\n", - opponent[think], cuser.userid, number[1], number[0]); + opponent[think], cuser->userid, number[1], number[0]); } if (fp) fclose(fp); @@ -394,7 +394,7 @@ report() else if (nowboard[i][j] == WHITE) number[1]++; move(3, 60); - prints("%s", cuser.userid); + prints("%s", cuser->userid); move(3, 72); prints(": %02d", number[0]); move(4, 60); |