summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-08 02:12:55 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-08 02:12:55 +0800
commit68b60cb8d7601ddafd322184a79cd3e4d11688dd (patch)
treee2c3d0e1abf7d56082fd017702b5a9ddc0614f4f /include
parent25712a5f0eea228f8bbe09257e8c1b15a50c0241 (diff)
downloadpttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.gz
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.bz2
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.lz
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.xz
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.tar.zst
pttbbs-68b60cb8d7601ddafd322184a79cd3e4d11688dd.zip
calculate chess ELO rating
only show rating in debug mode now git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2228 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/chc.h1
-rw-r--r--include/pttstruct.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/chc.h b/include/chc.h
index 416f1193..052565cf 100644
--- a/include/chc.h
+++ b/include/chc.h
@@ -37,6 +37,7 @@ typedef struct chcusr_t{
int win;
int lose;
int tie;
+ unsigned short rating;
} chcusr_t;
#define CHC_ACT_BOARD 0x1 /* set if transfered board to this sock */
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 2fb8dd87..edffe721 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -99,7 +99,8 @@ typedef struct userec_t {
unsigned char goodsale; /* 競標 好的評價 */
unsigned char badsale; /* 競標 壞的評價 */
char myangel[IDLEN+1]; /* 我的小天使 */
- char pad[54];
+ unsigned short chess_elo_rating; /* 象棋等級分 */
+ char pad[52];
} userec_t;
/* these are flags in userec_t.uflag */
#define PAGER_FLAG 0x4 /* true if pager was OFF last session */