John Wiegley [Tue, 2 Sep 2008 01:49:34 +0000 (21:49 -0400)]
Report an error if we fail to find the beginning of a game loaded from
ChessDB, or fail to see its end. Also, give up to 10 seconds to wait for the
result to come from ChessDB, polling every second to look for new output.
John Wiegley [Tue, 2 Sep 2008 01:03:25 +0000 (21:03 -0400)]
Erase the buffer before asking scid for a PGN position. What happens during
running of the validation tests is that he buffer fills up before we can
evaluate all the games.
John Wiegley [Mon, 1 Sep 2008 07:47:23 +0000 (03:47 -0400)]
When a testing error occurs, mention the exact test that failed along with
the cause. Also, make it so that a failing test does not stop all the
tests from running.
John Wiegley [Mon, 1 Sep 2008 05:06:09 +0000 (01:06 -0400)]
Several improvements to how tests are run.
First, if the user hasn't downloaded the monster test database, we just run a
simple test of 400 historical games. Second, you can specify the variables
START and COUNT on the command line, for running just a part of the huge
database.
John Wiegley [Mon, 1 Sep 2008 04:27:40 +0000 (00:27 -0400)]
Except for when making moves interactively (with chess-display-manual-move),
it is an error if a ply implies a promotion but not :promote keyword is passed
to indication which piece to promote to.
John Wiegley [Fri, 29 Aug 2008 09:12:58 +0000 (05:12 -0400)]
Don't report an error if the user's sound reporting function fails to work.
This is needed on OS X, which has the `play-sound-file` function, but when
called reports an error that sound support is not available.
John Wiegley [Fri, 29 Aug 2008 06:43:55 +0000 (02:43 -0400)]
Several changes to fix byte-compile warnings, changed some iso-8859-1 encoded
files to UTF-8, and switched to using insert-file-contents instead of the
-literally variant (which doesn't respect content encodings).
John Wiegley [Fri, 29 Aug 2008 06:42:58 +0000 (02:42 -0400)]
Changed to using an autoconf/automake setup for building. This precipitated
many changes to the code, including:
- documentation has been moved into doc/
- the chess-eco opening moves are pre-generated from chess-eco.ps into
chess-eco.fen, so users don't have to wait around for it to build
- no longer using lispdoc to auto-gen function stubs in chess.texi,
this means that chess-maint.el and lispdoc.el are gone
John Wiegley [Mon, 27 Jun 2005 23:53:24 +0000 (23:53 +0000)]
(chess-plain-popup): Pass nil for the `font' argument to
`chess-display-popup-in-frame', since we don't care what the size of
the font is with textual chessboards.
John Wiegley [Mon, 27 Jun 2005 23:53:09 +0000 (23:53 +0000)]
(chess-input-shortcut): If a character is typed that is not a legal
start of a move (which only happens if it's not bound to anything
else), just ignore it.
John Wiegley [Mon, 27 Jun 2005 23:53:02 +0000 (23:53 +0000)]
(chess-images-determine-size): On Macs and
Windows, reduce the screen height by 80 instead of just 20, to
account for the Start/Status bar.
(chess-images-popup): Pass in a `font' to
`chess-display-popup-in-frame', so that the pixel height for each
graphical piece is computed correctly.
(chess-images-change-size): Foricbly popup the chess buffer when
changing the size of graphical pieces.
John Wiegley [Mon, 27 Jun 2005 23:52:42 +0000 (23:52 +0000)]
(chess-display-popup-in-frame): Added a `font' parameter, so that the
font can be set in new chessboard frames (which is necessary to get
the pixel height/width right).
Mario Lang [Mon, 1 Mar 2004 16:46:17 +0000 (16:46 +0000)]
remove chess-opening from chess-default-modules for now, if it is loaded uncompiled, it creates problems for the user, so leave it out by default for now. People who want this just need to put it back in, and make sure they are getting a compiled .elc file
Mario Lang [Sun, 29 Feb 2004 17:36:53 +0000 (17:36 +0000)]
Enhance ICC support:
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.
Mario Lang [Sun, 22 Feb 2004 19:32:27 +0000 (19:32 +0000)]
(chess-ics-ads-removed): We need to be a lot more careful when
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!
Mario Lang [Sun, 22 Feb 2004 13:25:13 +0000 (13:25 +0000)]
Require 'rx when compiling.
(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.
Mario Lang [Sun, 22 Feb 2004 13:01:26 +0000 (13:01 +0000)]
(chess-engine-filter): We were calling `forward-line'
unconditionally. However, there is a race condition, namely,
if the last line does not end with a newline, forward-line
will skip to eob, therefore, engine regexps will simply
be missed. Fixed.
(chess-engine-entire-lines): This was a fix for the wrong problem,
removed.