summaryrefslogtreecommitdiffstats
path: root/mbbsd/gomo.c
Commit message (Collapse)AuthorAgeFilesLines
* - bbs: fix utmp_brcid out-of-sync on 's' select.piaip2008-04-151-3/+4
| | | | | | | - visio: change unified handle (VSOREF) to typed ref, and utilize new APIs git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4165 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix typopiaip2008-04-031-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4076 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix go score calculation (prior will have 'lose' overflow - forget to ↵piaip2008-04-031-3/+1
| | | | | | increase at first) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4075 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change GLOBAL_* to BN_*piaip2008-03-311-2/+2
| | | | | | | WARNING: PLEASE MANUALLY UPDATE pttbbs.conf!! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4051 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) drop deprecated old OS support. focus on modern Linux/FreeBSD now.piaip2008-03-261-0/+193
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4020 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - change big_picture to inansistr() api.piaip2007-12-221-3/+9
| | | | | | | - pmore: also disable scrolling for traditional movies git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3722 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - talk: big_picture free version, prepared for pftermpiaip2007-12-211-0/+1
| | | | | | | - chess family: check the exisitance of big_picture. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3716 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Use fency game board in GO and GOMOKUscw2007-10-031-6/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Reversi (multiplayer othello) addedscw2007-05-301-3/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add article header for chess log. also hint user the replay log hotkey 'z'.kcwu2006-10-081-0/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* gomoku machine readable log reading fixscw2005-09-231-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* code clean up.kcwu2005-09-221-61/+58
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3201 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* GO convertion to chess frameworkscw2005-09-111-14/+10
| | | | | | | | | | | | | | * 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
* Gomoku log read errorscw2005-09-021-8/+26
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3125 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* gomoku log read problemscw2005-08-291-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3113 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* try using userec_t to initialize ChessUser when failed to get userinfo_tscw2005-08-281-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3106 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Chess functions:scw2005-08-281-1/+75
| | | | | | | | | | | * 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
* * chess country includes GO nowscw2005-08-211-1/+1
| | | | | | * fix warning in gomo.c git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3070 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Move cursor to where opposite play in gomoku.scw2005-08-211-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3069 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Wrong winner on rule-violating step.scw2005-08-201-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3066 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Move cursor to center of the play board in gomokuscw2005-08-161-0/+3
| | | | | | | at the begining of the game. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3041 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* gomoku and go logging updatescw2005-08-151-5/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3037 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Gomoku convertion to chess.c frameworkscw2005-08-151-627/+290
| | | | | | | | | | | | | | | * 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
* No more colorful title for gomoku log on board.scw2005-08-081-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3006 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Don't generate '\t' (tab) in gomoku log file.scw2005-07-281-2/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2969 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* apply rafan's (rafan.bbs@ptt2.cc) big patch to s/username/nickname/gvictor2005-07-041-2/+2
| | | | | | | turn off FOREIGN_REG by default in sample/pttbbs.conf git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2887 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* New style to specify ANSI escape commands.piaip2005-06-081-39/+39
| | | | | | | | | First introduced by pmore, but this hard work (to transform all files to new style) is made by Rong-en Fan (rafan). Thanks! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* move global variable xuser into local, save 512 bytes.kcwu2005-03-121-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning free: "static" should be in front of "const"kcwu2005-03-031-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2569 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Strip escape sequences and spaces in country name when playing gomoku.scw2005-02-121-2/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2502 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Undo in gomoku needs opposite's comfirm.scw2005-02-121-22/+70
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2498 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Gomoku playing screen changed. Money is no longer shown.scw2005-02-121-4/+37
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2494 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix gomoku log problem.scw2005-02-111-1/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2492 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* redraw help bar to avoid overrided by water ball.scw2005-01-291-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2443 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Collect all the five chess log to a board if GLOBAL_FIVECHESS_LOGscw2005-01-251-25/+63
| | | | | | | is define. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2433 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix gomoku passing states.scw2005-01-231-6/+24
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2423 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Showing blank photo when either side has not joined chess country,scw2005-01-231-27/+30
| | | | | | | but showing original style when neither side has joined. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2422 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Showing picture on five chess match. (only when both sides participatedscw2005-01-231-24/+118
| | | | | | | chess country and have photos) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2421 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Refactoring screen.c and adding function GetCurrentLine().scw2005-01-211-1/+4
| | | | | | | Adding redoscr() and use it in gomoku to reduce refresh size. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2418 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: missing string terminate charkcwu2004-11-061-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2318 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* eliminate 361byte global arraykcwu2004-10-311-22/+23
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2295 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix screen for gomo.scw2004-07-281-6/+11
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2150 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Buildin gomo board, etc/@five no longer needed.scw2004-07-281-1/+22
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2149 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Add color for gomo board. (The same way as in GO)scw2004-07-281-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2148 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* GO game merged from FPG.scw2004-07-041-9/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2113 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use 'const' keyword to reduce 7904 bytes data segmentkcwu2004-06-041-1/+1
| | | | | | | from 9320 to 1416 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2049 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove prototypes of not exist functionskcwu2004-06-041-1/+3
| | | | | | | use static keyword for local function git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* integrate igetkey igetch egetchptt2004-04-241-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1828 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert cuser from pointer to buffer.ptt2004-04-211-29/+29
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* refiningptt2004-03-311-8/+8
| | | | | | | | 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-40/+29
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1501 ↵ptt2004-01-311-1/+1
| | | | 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge from my branchvictor2003-09-091-0/+135
| | | | | | | | | merge chc_*.c to chc.c merge gomo1.c into gomo.c add new feature to chc git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1171 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* code cleanupkcwu2003-09-061-14/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1162 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * there are so many fopen() without fclose()kcwu2003-01-201-1/+2
| | | | | | | | * assert fopen() * clean up git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@638 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* move global array into local.kcwu2003-01-161-10/+11
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@611 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* who wrote this.... @@kcwu2003-01-161-10/+2
| | | | | | | | | | | | ptr = pool; i = 0; do { i++; } while (++ptr < v); return i; git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@610 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* sprintf() -> snprintf()in22002-07-231-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@435 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* indent -i4in22002-07-211-10/+10
| | | | | | | fix indent's word error git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* strcpy() -> strlcpy()in22002-07-211-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* indentin22002-07-061-144/+159
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@415 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* global variable move to var.cin22002-06-041-26/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *** empty log message ***ptt2002-05-251-3/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@220 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace time(NULL) by nowptt2002-05-131-7/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@163 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change getdata() constant to sizeof()in22002-04-291-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@131 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Initial revisionin22002-03-071-0/+417
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1 63ad8ddf-47c3-0310-b6dd-a9e9d9715204