summaryrefslogtreecommitdiffstats
path: root/mbbsd/chc.c
Commit message (Collapse)AuthorAgeFilesLines
* avoid use math library (-lm).kcwu2005-02-241-3/+25
| | | | | | | sanity check for result of elo rating git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2528 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* log outcome of chess playingkcwu2005-02-241-0/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2527 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* bug fix: fix broadcast linklistkcwu2005-02-061-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2475 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * In generalnamecomplete(), complete as more as possible when space (' ')scw2005-02-051-5/+1
| | | | | | | | | | | | | | | is pressed. (As what <tab> does in most shell) * In all three completing functions (namecomplete, usercomplete and generalnamecomplete), return null string instead of partial matched name which makes users able to talk/annoy those they are not supposed to talk to (admins or cloaks). * Type of parameters of generalnamecomplete has typedefed and should be clearer. * New macro CompleteBoard and CompleteOnlineUser are defined since most of the usage of generalnamecomplete are the same. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2468 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace rand() with random() for better randomnesskcwu2005-02-041-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2460 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* treat lose and decrease chess rating if disconnectedkcwu2004-10-311-2/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2301 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix chess piece name (wrong side)kcwu2004-10-241-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2276 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix move step linekcwu2004-10-191-57/+111
| | | | | | | | | step line display front or back piece only except pawn show red vs black fix log win/lose git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2268 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* rename global static variable "fp" to "chessfp"kcwu2004-10-181-9/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2263 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* also update rating in ramkcwu2004-10-081-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2230 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* calculate chess ELO ratingkcwu2004-10-081-0/+33
| | | | | | | only show rating in debug mode now git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2228 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* big5 sucksvictor2004-10-061-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2225 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove unused uflag: MIND_FLAG, COLOR_FLAGvictor2004-10-061-20/+62
| | | | | | | disable chinese chess watching git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2224 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge back from branch victor.solarisvictor2004-09-101-4/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2189 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix chc bug, but still buggyvictor2004-09-091-7/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2184 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Add statistic program for angel.scw2004-06-201-0/+1
| | | | | | | fix some warning and add svn:keywords Id for several files. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2072 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace some prints() with outs(),kcwu2004-06-101-1/+1
| | | | | | | | | | | | replace some outs() with outc(), replace some fprintf() with fputs(), and so on. for performance. and don't treat user input as format string. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2055 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use 'const' keyword to reduce 7904 bytes data segmentkcwu2004-06-041-5/+5
| | | | | | | from 9320 to 1416 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2049 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* integrate igetkey igetch egetchptt2004-04-241-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1828 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert the river namevictor2004-04-231-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1820 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert cuser from pointer to buffer.ptt2004-04-211-6/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* chess rollbackptt2004-04-201-4/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1795 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* chess -_-ptt2004-04-141-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1754 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1.change outs pressanykey -> vmsgptt2004-04-141-2/+4
| | | | | | | 2.secrete chess git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1751 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix warning, including:scw2004-04-021-0/+4
| | | | | | | | | | Prototype differance of crypt() on linux. Adding _ISOC99_SOURCE to get declaration of snprintf() on linux. Including strings.h to get declaration of strcasecmp() on linux. Using mkstemp() instead of tempnam(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* refiningptt2004-03-311-1/+1
| | | | | | | | cuser & passwd_update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1649 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mmap to cuser get ride of passwd_updateptt2004-03-311-6/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mode CHESSWATCHINGvictor2003-10-141-1/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1239 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ask before watching a chc game.victor2003-09-281-0/+3
| | | | | | | fix wrong flow git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1208 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug - syntax errorvictor2003-09-131-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1182 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* code auditkcwu2003-09-101-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1175 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge chc from my branchvictor2003-09-091-0/+1030
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1170 63ad8ddf-47c3-0310-b6dd-a9e9d9715204