summaryrefslogtreecommitdiff
path: root/chess-ics.el
AgeCommit message (Collapse)Author
2018-08-08assign default chess-engine handler for chess-icsdickmao
2014-06-04Sync from ELPA.Mario Lang
2014-05-20Add proper file headers.Mario Lang
2014-04-22chess-ics.el: oics definition.Mario Lang
2014-04-17chess-ics.el: Add guest login support for chess.net.Mario Lang
2014-04-03chess-ics.el: Pacify compiler.Mario Lang
2014-04-03chess-ics.el: use tabulated-list-mode.Mario Lang
This eliminates roughly 100 lines of boilerplate code.
2014-04-02ICC seek removal was broken as well.Mario Lang
2014-04-02Try to improve the promotion situation on ICS by allowing chess-ply to query ↵Mario Lang
for the promotion piece.
2014-04-02Fix ics seek ads removal.Mario Lang
2014-04-02Eliminate a few compiler warnings due to missing require or cl runtime use.Mario Lang
2008-09-02Added a code cleanup note.John Wiegley
2008-09-02Removed code that was appending text to the ends of variables, rather thanJohn Wiegley
using format string specifiers.
2008-09-01Fix ics style12 regex.Mario Lang
2008-08-29Instead of ignoring ICS refresh commands, use them as a chance to ensure thatJohn Wiegley
what we think is the current game position really is.
2008-08-29Rearranged some code just to make it easier to read.John Wiegley
2008-08-29Silently ignore refresh directives in the ICS protocol.John Wiegley
2008-08-29last-triggers was never used, it was suppose to refer to last-session, a ↵Mario Lang
LET-bound variable.
2008-08-29Several changes to fix byte-compile warnings, changed some iso-8859-1 encodedJohn Wiegley
files to UTF-8, and switched to using insert-file-contents instead of the -literally variant (which doesn't respect content encodings).
2005-06-27(chess-ics-sought-add): Added this routine to factor out a lot ofJohn Wiegley
duplicated code.
2005-01-16Implement resign/takeback/draw/flag announcements for ics (ks)Mario Lang
2004-03-04support DG_TAKEBACK and DG_BACKWARDMario Lang
2004-03-01better icc datagram supportMario Lang
2004-02-29fix kibitzes on iccMario Lang
2004-02-29Enhance ICC support:Mario Lang
Make "backs up" message work. Rudimentary level2 datagram support through chess-ics-icc-preoutput-filter. New variable chess-ics-icc-datagrams to define which datagrams should be requested upon login. New variable chess-ics-server-type which defaults to FICS, and gets set to ICC when we encounter an ICC server. Handle DG_KIBITZ by translating them to the FICS representation. Handle movelist request through DG_POSITION_BEGIN2 and DG_PASTMOVE.
2004-02-24more stability improvementsMario Lang
2004-02-22(chess-ics-ads-removed): We need to be a lot more careful whenMario Lang
deleteing stuff on a preoutput-filter-function. Fixed this, which also fixes all the remaining cases of missed boards. LectureBot ran through three Lectures without any bug, which seems good!
2004-02-22Require 'rx when compiling.Mario Lang
(chess-ics-style12-regexp): New constant regexp which matches a style12 string (subgroup 1 to 32). (chess-ics-matcher-alist): Use it. (chess-ics-matcher-alist): Destroy game object if we see a "no longer examining..." message. (chess-ics-handle-style12): Rewrite using `match-string' instead of `pop' based on the new regexp above. (chess-ics-handle-style12): No longer `message' parse errors, rather keep the failed board in the buffer, and add the failure info to the front of the line. Makes finding remaining bugs a lot easier since the buffer can be reviewed in chronological order.
2004-02-12chess-ics-sought-mode-map: new variableMario Lang
2004-02-08Fixed several byte-compilation errors. Mario: What isJohn Wiegley
`last-triggers'?
2004-02-05sort of pseudobarf on refresh to easy finding of the obscure observe bug, ↵Mario Lang
and set back-moved-first game-data always, so that it even works if a game is reset to a new starting position
2004-02-03(chess-ics-initial-commands): New defcustom to makeMario Lang
the init-strings sent after login configurable. (chess-ics-movelist-start-position): New buffer-local variable which defaults to `chess-starting-position'. Its value (if non-nil) is used to initialize the board when seeing a movelist header. This is to allow for servers which have the equivalent of "iset startpos 1" on FICS, which tells the server to automatically send the initial position before sending a movelist. This is to allow non-standard starting positions, and still maintain complete game information in the game object locally. (chess-ics-matcher-alist): If we see something like "startpos set", we set chess-ics-movelist-start-position to nil. (chess-ics-handle-style12): Renamed from chess-ics-handle-ics12. Set game-data 'black-moved-first to t if we see a initial board (move is "none"), and side-to-move is Black. Use this information to calculate the correct game index from the supplied game sequence. This fixes observing of arbitrary start position games where Black moved first. (Most of LectureBot should work now). (chess-ics-seeking): Handle "set ptime 1" prompts. (chess-ics-ads-removed): Ditto.
2004-02-02iset startpos 1 makes requesting the movelist work forMario Lang
games which were started from bsetup positions. Attempt to route kibitzes to chess-announce. Some other fixes to increase ICC compatibility.
2004-01-31Now finally handle seek announcements and removals.Mario Lang
THis time, we put stuff in comint-preoutput-filter-functions to save lots of unnecessary regexp matches.
2004-01-30prettify chan-tellsMario Lang
2004-01-29Handle seek announcements by making the "play xxx" stringMario Lang
clickable.
2004-01-28set interface emacs-chess VERSIONMario Lang
2004-01-20catch manually typed resign and fix a bug where only one game could be ↵Mario Lang
played each session.
2004-01-19tidyingMario Lang
2004-01-19rewrite this module such that it does not act as an engine, rather it ↵Mario Lang
invoked chess-sessions as needed. You need to use M-x chess-ics RET instead of C-u M-x chess RET ics RET now. Additionally, rewrite chess-ics-handle-ics12 such that it can handle the refresh command, and moves entered manually in the ICS buffer
2004-01-13Initial skeleton for Game Creating messages.Mario Lang
Support relation-type -2 (Examining game). Handle the 'forward event. (Now you can use the "examine" command on FICS, and simply type '.' in the ChessBoard display to forward through the game.)
2004-01-12(chess-ics-server-list): Added some more servers.Mario Lang
(chess-ics-regexp-alist): Make guest login on chessclub.com work. (chess-ics-handle-ics12): Retrieve TimeControl info from the ics12 board and set TimeControl game tag when initial board is seen.
2004-01-11set epd opcode ce from material-value and checkmate infoMario Lang
2004-01-11Merge chess-ics-parse-ics12 and chess-ics-handle-move intoMario Lang
a new function chess-ics-handle-ics12, which is a lot easier to read now. Also make the <12> regexp a bit more strict to avoid false positives.
2004-01-11fixed messed up parensMario Lang
2004-01-11(chess-ics-handler): Read the password before opening the connection.Mario Lang
This corrects a race where the password can be unknown when the prompt appears because the user hasnt finished typing yet... (chess-ics12-parse): Use `pop' to make stuff simpler and use `mapc' to get castling info. Indent chess-ics-regexp-alist differently.
2003-02-09No it didnt (revert) bahMario Lang
2003-02-09Change regexp to ^login, makes autologon workMario Lang
2002-06-20fix for when opponent calls flagJohn Wiegley
2002-06-17*** no comment ***John Wiegley