summaryrefslogtreecommitdiffstats
path: root/mbbsd/chess.c
Commit message (Collapse)AuthorAgeFilesLines
* - refine key processing of CR(C-M), LF(C-J), BS(C-H), BS2(0x7f)piaip2008-04-211-2/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) getans -> vanspiaip2008-04-171-2/+2
| | | | | | | - (internal) update license git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4175 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change API names to visio format: stand_title -> vs_hdr.piaip2008-04-151-6/+6
| | | | | | | - mouts -> (curses style) mvouts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4167 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Drop Solaris supportwens2008-04-091-4/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4115 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - add option "default to backup" (from PttSuggest@ptt2)piaip2008-03-031-1/+6
| | | | | | | - user/reg: prevent ambigious regcode. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3962 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - change screen APIs to ncurses-like namespiaip2007-12-211-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3717 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Escape from being watched when playing info is NULLscw2007-11-041-2/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3587 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix chess undo incorrectly set info->turnscw2007-06-011-2/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3525 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Reversi (multiplayer othello) addedscw2007-05-301-9/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* sigmask properly when leaving chessscw2007-05-301-11/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3522 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Chess signal remasking before setting handlerscw2007-05-281-2/+11
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3521 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Allowing denying being watched when playing chess.scw2007-05-281-1/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3520 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * skip KEY_UNKNOWN.kcwu2007-05-091-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3513 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix warning: array subscript has type 'char'scw2007-03-241-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3492 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Set timeout for confirmation when playing chess to avoidscw2007-03-241-18/+39
| | | | | | | wasting others' time. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3491 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add article header for chess log. also hint user the replay log hotkey 'z'.kcwu2006-10-081-3/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Reverse photo display in chess game to fit the directionscw2006-08-091-8/+8
| | | | | | | of the game (especially chc). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3398 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* verify userid when sethome path.kcwu2006-03-271-10/+21
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3308 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* more assertion for tracking bug.kcwu2006-03-271-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3304 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* No mail alert for personal chess log scw2005-09-201-2/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3193 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* GO chess replay implementedscw2005-09-111-6/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3155 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* GO convertion to chess frameworkscw2005-09-111-78/+166
| | | | | | | | | | | | | | * versus, personal and watching all work chess.c framework update * "pass" and "tie request" are distinguished * chess-specific key binding * post-game processing !!!NOTE!!! Chess protocals are NOT backward compatible RESTART WHOLE system to ensure correctness git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix last commit: time calculating considered "counting mode"scw2005-09-041-3/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3127 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * help message update: 'p' means "tie request" as well as passscw2005-09-031-6/+17
| | | | | | | * opposite alive check at begin * time limit calculating way changed (Chinese chess rule) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3126 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * refine chess framework IO routinesscw2005-09-021-19/+24
| | | | | | | * don't write data to user socket when there is no opposite git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3124 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * chc machine-readable log reflectedscw2005-09-011-0/+2
| | | | | | * chc replaying put red on bottom git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3123 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * allowing undo when playing chess personallyscw2005-09-011-2/+22
| | | | | | * message enhenced git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3122 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix r3116, I mean `mateid.' Thanks kcwu.scw2005-08-301-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3118 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warn user if file is unable to open.kcwu2005-08-301-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3117 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* prevent from search_ulist_userid() returning NULLscw2005-08-291-2/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3116 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix last commitscw2005-08-281-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3107 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* try using userec_t to initialize ChessUser when failed to get userinfo_tscw2005-08-281-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3106 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Chess functions:scw2005-08-281-21/+79
| | | | | | | | | | | * chc machine readable log - http://www.elephantbase.net/protocol/cchess_pgn.htm - http://www.elephantbase.net/protocol/cchess_move.htm * chc and gomoku replay work * key binding 'z' in pmore() for chess replay * avoid crash when watching (the watchee's mateid is empty) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3105 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* set*() family functions all assume buffer size = PATHLEN, to prevent buffer ↵kcwu2005-08-231-12/+12
| | | | | | | | | overflow. do some s/256/PATHLEN/. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3074 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add_io(0, 0) before reading data from user when playing chessscw2005-08-201-3/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3067 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Wrong winner on rule-violating step.scw2005-08-201-2/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3066 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Don't move two steps when client is dbcs-awared.scw2005-08-181-0/+21
| | | | | | | (don't know if this is a good solution) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3058 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* chess photo not found problemscw2005-08-171-1/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3055 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* r133@scwnb: bbsadm | 2005-08-17 22:46:26 +0800scw2005-08-171-0/+1
| | | | | | | Chess help info updated for undo git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3054 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Chess undoscw2005-08-171-26/+91
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3053 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* gomoku and go logging updatescw2005-08-151-2/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3037 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Gomoku convertion to chess.c frameworkscw2005-08-151-25/+217
| | | | | | | | | | | | | | | * versus, watching and personal playing * undo function removed due to the restriction of the framework currently chess.c framework update * resign confirm * invited peer can be watched !!!NOTE!!! Gomoku protocal not backward compatible RESTART WHOLE system to ensure correctness git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3036 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix crash when logging a tied chc gamescw2005-08-131-7/+16
| | | | | | | * confirming tying request in chess games git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3034 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix chc watching SEGV bugscw2005-08-101-0/+3
| | | | | | | * chc.[ch] and chess.[ch] code clean up git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3022 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix r3015.scw2005-08-091-8/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3017 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix chess internal coordinate. kcwu2005-08-081-15/+15
| | | | | | !! NOTE !!, not compatible with older revision. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3009 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Use ``void (*)(int)'' instead of ``sighandler_t'' since FreeBSDscw2005-08-081-1/+1
| | | | | | | use sig_t instead of sighandler_t. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3004 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix chess watching backward one step bugscw2005-08-081-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3003 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* New chess frameworkscw2005-08-081-0/+1181
* Provides common parts of all chess games * Chinese chess fully ported * Improved watching * Leaving possibility to implement replaying !!!NOTE!!! Protocal not backward compatible, STOP ALL clients before upgrade. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3002 63ad8ddf-47c3-0310-b6dd-a9e9d9715204