]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
10 years agochess-legal-plies: Stop generating duplicate castling moves.
Mario Lang [Thu, 17 Apr 2014 23:13:31 +0000 (01:13 +0200)]
chess-legal-plies: Stop generating duplicate castling moves.

10 years agochess-legal-plies: Generate R and B promotions in addtion to Q and N.
Mario Lang [Thu, 17 Apr 2014 23:11:49 +0000 (01:11 +0200)]
chess-legal-plies: Generate R and B promotions in addtion to Q and N.

10 years agochess-perft.el: ert tests to find move generator bugs.
Mario Lang [Thu, 17 Apr 2014 23:10:02 +0000 (01:10 +0200)]
chess-perft.el: ert tests to find move generator bugs.

10 years agochess-perft.el: move generator testing.
Mario Lang [Thu, 17 Apr 2014 11:13:46 +0000 (13:13 +0200)]
chess-perft.el: move generator testing.

10 years agochess-ics.el: Add guest login support for chess.net.
Mario Lang [Thu, 17 Apr 2014 06:28:32 +0000 (08:28 +0200)]
chess-ics.el: Add guest login support for chess.net.

10 years agochess-ai.el: Spare computing time by consulting the opening book.
Mario Lang [Wed, 16 Apr 2014 14:36:53 +0000 (16:36 +0200)]
chess-ai.el: Spare computing time by consulting the opening book.

10 years agochess-polyglot.el: Ship default book file.
Mario Lang [Wed, 16 Apr 2014 13:06:08 +0000 (15:06 +0200)]
chess-polyglot.el: Ship default book file.

Also, move some customisation settings from chess-uci to chess-polyglot.

10 years agochess-ai.el: Oops, cl-delete-if only at runtime.
Mario Lang [Tue, 15 Apr 2014 14:37:01 +0000 (16:37 +0200)]
chess-ai.el: Oops, cl-delete-if only at runtime.

10 years agochess-ai.el: No need for cl-sort.
Mario Lang [Tue, 15 Apr 2014 13:59:37 +0000 (15:59 +0200)]
chess-ai.el: No need for cl-sort.

10 years agoBuild fruit and glaurung modules.
Mario Lang [Mon, 14 Apr 2014 10:27:03 +0000 (12:27 +0200)]
Build fruit and glaurung modules.

10 years agochess-ai.el: Require cl-lib at runtime for cl-sort.
Mario Lang [Sun, 13 Apr 2014 10:21:22 +0000 (12:21 +0200)]
chess-ai.el: Require cl-lib at runtime for cl-sort.

10 years agochess-ai.el: Better top-level move ordering and quiescence pruning.
Mario Lang [Thu, 10 Apr 2014 07:47:59 +0000 (09:47 +0200)]
chess-ai.el: Better top-level move ordering and quiescence pruning.

10 years agochess-ai.el: Rename functions and fix a subtle bug in quiescence search termination.
Mario Lang [Wed, 9 Apr 2014 22:53:37 +0000 (00:53 +0200)]
chess-ai.el: Rename functions and fix a subtle bug in quiescence search termination.

10 years agochess-ai.el: Cleanup.
Mario Lang [Wed, 9 Apr 2014 22:31:20 +0000 (00:31 +0200)]
chess-ai.el: Cleanup.

10 years agochess-ai.el: Quiescence search.
Mario Lang [Wed, 9 Apr 2014 21:29:05 +0000 (23:29 +0200)]
chess-ai.el: Quiescence search.

This change finally fixes the internal Emacs Lisp based AI enough
to be an interesting opponent.  Search is of course very slow, and
rather shallow (2 plies + quiescence by default) but the AI can finally
defend itself against simple attacks, and sees opportunities as expected.

10 years agochess-legal-plies: If chess-ply-allow-interactive-query is nil, generate Q and N...
Mario Lang [Wed, 9 Apr 2014 12:55:03 +0000 (14:55 +0200)]
chess-legal-plies: If chess-ply-allow-interactive-query is nil, generate Q and N promotions.

10 years agochess-ai.el: Ply ordering + a bit of progress reporting.
Mario Lang [Tue, 8 Apr 2014 09:49:26 +0000 (11:49 +0200)]
chess-ai.el: Ply ordering + a bit of progress reporting.

10 years agochess-ai.el: Simpler search function, progress reporter and bug fixed.
Mario Lang [Tue, 8 Apr 2014 07:57:46 +0000 (09:57 +0200)]
chess-ai.el: Simpler search function, progress reporter and bug fixed.

10 years agochess-search-position: Also consider opponent king moves when checking for check.
Mario Lang [Mon, 7 Apr 2014 01:42:42 +0000 (03:42 +0200)]
chess-search-position: Also consider opponent king moves when checking for check.

With this the rule that there always needs to be one square between kings
is honours in chess-legal-plies.  Without this fix, a move next to the
opponents king was considered legal.

10 years agoTODO items done since we switched to tabulated-list-mode.
Mario Lang [Sun, 6 Apr 2014 19:08:33 +0000 (21:08 +0200)]
TODO items done since we switched to tabulated-list-mode.

10 years agoFix docstrings.
Mario Lang [Fri, 4 Apr 2014 09:26:37 +0000 (11:26 +0200)]
Fix docstrings.

10 years agochess-ics.el: Pacify compiler.
Mario Lang [Thu, 3 Apr 2014 12:14:37 +0000 (14:14 +0200)]
chess-ics.el: Pacify compiler.

10 years agochess-ics.el: use tabulated-list-mode.
Mario Lang [Thu, 3 Apr 2014 12:10:46 +0000 (14:10 +0200)]
chess-ics.el: use tabulated-list-mode.

This eliminates roughly 100 lines of boilerplate code.

10 years agoICC seek removal was broken as well.
Mario Lang [Wed, 2 Apr 2014 13:11:06 +0000 (15:11 +0200)]
ICC seek removal was broken as well.

10 years agoTry to improve the promotion situation on ICS by allowing chess-ply to query for...
Mario Lang [Wed, 2 Apr 2014 11:26:02 +0000 (13:26 +0200)]
Try to improve the promotion situation on ICS by allowing chess-ply to query for the promotion piece.

10 years agoFix ics seek ads removal.
Mario Lang [Wed, 2 Apr 2014 09:46:57 +0000 (11:46 +0200)]
Fix ics seek ads removal.

10 years agoEliminate a few compiler warnings due to missing require or cl runtime use.
Mario Lang [Tue, 1 Apr 2014 23:37:37 +0000 (01:37 +0200)]
Eliminate a few compiler warnings due to missing require or cl runtime use.

10 years agoFor some reason, chess-pos.el needs to be compiled first.
Mario Lang [Tue, 1 Apr 2014 16:00:00 +0000 (18:00 +0200)]
For some reason, chess-pos.el needs to be compiled first.

10 years agochess-rf-to-index: Fix assertion.
Mario Lang [Tue, 1 Apr 2014 14:47:57 +0000 (16:47 +0200)]
chess-rf-to-index: Fix assertion.

Should be and, not or.  cl-check-type is more clear anyway.

10 years agochess-clock-tick-tock: Fix an error on first call.
Mario Lang [Mon, 31 Mar 2014 22:02:19 +0000 (00:02 +0200)]
chess-clock-tick-tock: Fix an error on first call.

First time around, chess-clock-last-time is nil.

10 years agochess-pos.el: Reorder some definitions to pacify compiler.
Mario Lang [Mon, 31 Mar 2014 17:24:39 +0000 (19:24 +0200)]
chess-pos.el: Reorder some definitions to pacify compiler.

Also, actually disable assertions during compilation (as intended)
which increases performance by roughly 30%.

10 years agoRefactor chess-plain-handler a bit.
Mario Lang [Sun, 30 Mar 2014 18:16:27 +0000 (20:16 +0200)]
Refactor chess-plain-handler a bit.

10 years agoTry to fix 045a93cb98dfd320e756ea9d9799ea92f0900bc6 a different way.
Mario Lang [Sun, 30 Mar 2014 18:08:21 +0000 (20:08 +0200)]
Try to fix 045a93cb98dfd320e756ea9d9799ea92f0900bc6 a different way.

Restore the old behaviour (run game hooks before painting move),
but move the post-move hook from chess-game-move to chess-display-move.

This fixes the reentrancy bug while preserving error checks being done in
the game hooks.

Maybe rename post-move to post-display-move?

10 years agoFix a rather serious bug in chess-pos-move:
Mario Lang [Sun, 30 Mar 2014 18:03:11 +0000 (20:03 +0200)]
Fix a rather serious bug in chess-pos-move:

We were checking for king or rook moves to remove our castling flags if necessary,
but we did not remove the opponents castling flags if we took one of their rooks.

This led to rather invalid positions.  You could castle with your king and
the opponents piece.

10 years agoTry to fix a reentrancy bug in chess-display-move.
Mario Lang [Sun, 30 Mar 2014 15:07:11 +0000 (17:07 +0200)]
Try to fix a reentrancy bug in chess-display-move.

The problem occurs with engine modules which reply to move events with move
events directly, i.e. cvhess-ai and chess-uci when replying with a book move.
Since chess-display-move first performs chess-game-move followed by
chess-display-paint-move, we end up with the plies getting painted in reverse.
This is visible when pieces are taken.
If we paint the move first and then emit the move event on the game,
the problem goes away.

10 years agoUCI engines *crash* on FENs with missing trailing spaces.
Mario Lang [Sun, 30 Mar 2014 14:02:24 +0000 (16:02 +0200)]
UCI engines *crash* on FENs with missing trailing spaces.

10 years agochess-plain-piece-chars: Include a suggestion for unicode figures.
Mario Lang [Sun, 30 Mar 2014 11:40:50 +0000 (13:40 +0200)]
chess-plain-piece-chars: Include a suggestion for unicode figures.

10 years agochess-plain-piece-chars: Provide some useful default settings via custom :type.
Mario Lang [Sun, 30 Mar 2014 10:23:27 +0000 (12:23 +0200)]
chess-plain-piece-chars: Provide some useful default settings via custom :type.

10 years agoProvide unicode box drawing characters as a possible choice for chess-plain-border...
Mario Lang [Sun, 30 Mar 2014 01:11:30 +0000 (03:11 +0200)]
Provide unicode box drawing characters as a possible choice for chess-plain-border-chars via custom :type.

10 years agochess-uci.el: Use the post-move event to work around a display bug when the handler...
Mario Lang [Sat, 29 Mar 2014 18:10:16 +0000 (19:10 +0100)]
chess-uci.el: Use the post-move event to work around a display bug when the handler directly replies with a move because it was found in the book.

10 years agoDecompress a polyglot book file if it was compressed.
Mario Lang [Sat, 29 Mar 2014 15:28:16 +0000 (16:28 +0100)]
Decompress a polyglot book file if it was compressed.

10 years agoPacify byte compiler.
Mario Lang [Fri, 28 Mar 2014 11:23:25 +0000 (12:23 +0100)]
Pacify byte compiler.

10 years agoMake the strength of book replies configurable.
Mario Lang [Fri, 28 Mar 2014 10:57:29 +0000 (11:57 +0100)]
Make the strength of book replies configurable.

10 years agoSimplify the search in chess-polyglot.el.
Mario Lang [Fri, 28 Mar 2014 01:49:00 +0000 (02:49 +0100)]
Simplify the search in chess-polyglot.el.

10 years agoFixes to polyglot code.
Mario Lang [Thu, 27 Mar 2014 23:51:18 +0000 (00:51 +0100)]
Fixes to polyglot code.

10 years agochess-uci: Choose a (random) move from the book.
Mario Lang [Wed, 26 Mar 2014 09:52:52 +0000 (10:52 +0100)]
chess-uci: Choose a (random) move from the book.

10 years agoMore docstring fixes.
Mario Lang [Wed, 26 Mar 2014 09:26:50 +0000 (10:26 +0100)]
More docstring fixes.

10 years agoAn asterisk no longer signifies a user option.
Mario Lang [Wed, 26 Mar 2014 00:27:01 +0000 (01:27 +0100)]
An asterisk no longer signifies a user option.

10 years agoDocument and refactor chess-polyglot.el.
Mario Lang [Wed, 26 Mar 2014 00:01:21 +0000 (01:01 +0100)]
Document and refactor chess-polyglot.el.

10 years agoOptionally allow UCI engines to query a book provided by polyglot.
Mario Lang [Tue, 25 Mar 2014 20:51:47 +0000 (21:51 +0100)]
Optionally allow UCI engines to query a book provided by polyglot.

10 years agoLow level polyglot binary opening book support.
Mario Lang [Tue, 25 Mar 2014 19:38:25 +0000 (20:38 +0100)]
Low level polyglot binary opening book support.

10 years agochess-pgn-insert-and-show-position
Mario Lang [Mon, 24 Mar 2014 19:23:50 +0000 (20:23 +0100)]
chess-pgn-insert-and-show-position

10 years agoDocstrings.
Mario Lang [Mon, 24 Mar 2014 18:45:25 +0000 (19:45 +0100)]
Docstrings.

10 years agoRename chess-engine-sentinal to chess-engine-sentinel and simplify a bit.
Mario Lang [Mon, 24 Mar 2014 16:06:23 +0000 (17:06 +0100)]
Rename chess-engine-sentinal to chess-engine-sentinel and simplify a bit.

10 years agoUpdate phalanx URL.
Mario Lang [Mon, 24 Mar 2014 15:42:55 +0000 (16:42 +0100)]
Update phalanx URL.

10 years agoParse UCI long algebraic moves correctly.
Mario Lang [Mon, 24 Mar 2014 13:44:39 +0000 (14:44 +0100)]
Parse UCI long algebraic moves correctly.

10 years agochess-pos-can-castle: Avoid error if there is no king on the board.
Mario Lang [Mon, 24 Mar 2014 13:36:41 +0000 (14:36 +0100)]
chess-pos-can-castle: Avoid error if there is no king on the board.

10 years agoMore UCI engines: fruit and glaurung.
Mario Lang [Mon, 24 Mar 2014 09:08:02 +0000 (10:08 +0100)]
More UCI engines: fruit and glaurung.

10 years agoMake engine searching work again.
Mario Lang [Mon, 24 Mar 2014 09:03:22 +0000 (10:03 +0100)]
Make engine searching work again.

10 years ago(incomplete) support for the stockfish engine.
Mario Lang [Mon, 24 Mar 2014 00:58:43 +0000 (01:58 +0100)]
(incomplete) support for the stockfish engine.

10 years agoCheck for internal-default-process-filter when deciding to install our default filter.
Mario Lang [Mon, 24 Mar 2014 00:41:12 +0000 (01:41 +0100)]
Check for internal-default-process-filter when deciding to install our default filter.

10 years agoReplace obsolete `time-to-seconds' with `float-time'.
Mario Lang [Tue, 4 Mar 2014 10:50:02 +0000 (11:50 +0100)]
Replace obsolete `time-to-seconds' with `float-time'.

10 years agoDo not use `delete-backward-char'.
Mario Lang [Mon, 3 Mar 2014 17:21:36 +0000 (18:21 +0100)]
Do not use `delete-backward-char'.

10 years ago`last-command-char' is gone in Emacs24, it is `last-command-event' now.
Mario Lang [Mon, 3 Mar 2014 09:20:47 +0000 (10:20 +0100)]
`last-command-char' is gone in Emacs24, it is `last-command-event' now.

10 years agoFix (some) Emacs24 compatibility issues.
Mario Lang [Mon, 3 Mar 2014 00:04:02 +0000 (01:04 +0100)]
Fix (some) Emacs24 compatibility issues.

10 years agoUpdate .gitmodules
John Wiegley [Mon, 2 Dec 2013 10:59:20 +0000 (03:59 -0700)]
Update .gitmodules

10 years agoUpdate submodule pieces
John Wiegley [Thu, 31 Oct 2013 22:17:56 +0000 (17:17 -0500)]
Update submodule pieces

10 years agoMention `chess-default-engine' and prefix argument in `chess' docstring.
Mario Lang [Mon, 16 Sep 2013 18:37:16 +0000 (20:37 +0200)]
Mention `chess-default-engine' and prefix argument in `chess' docstring.

10 years agoDo not interactively prompt for confirmation when opening a large PGN file.
Mario Lang [Thu, 5 Sep 2013 19:51:02 +0000 (21:51 +0200)]
Do not interactively prompt for confirmation when opening a large PGN file.

10 years agoAllow testsuite generation from "The Week In Chess" (twic).
Mario Lang [Thu, 5 Sep 2013 19:48:45 +0000 (21:48 +0200)]
Allow testsuite generation from "The Week In Chess" (twic).

"make check-twic" will download the latest twic issues as PGN, concatenate
them and run test over them.

10 years agoLoad `cl' at compile time for `assert'.
Mario Lang [Thu, 5 Sep 2013 14:53:14 +0000 (16:53 +0200)]
Load `cl' at compile time for `assert'.

10 years agoThe argument to @sp is not optional in Texinfo 5.1.
Mario Lang [Thu, 5 Sep 2013 14:50:19 +0000 (16:50 +0200)]
The argument to @sp is not optional in Texinfo 5.1.

12 years agoAdded chess-ics2.el, from Dmitry "Troydm" Geurkov
John Wiegley [Mon, 19 Sep 2011 21:17:38 +0000 (16:17 -0500)]
Added chess-ics2.el, from Dmitry "Troydm" Geurkov

14 years agoAdded run-tests.sh
John Wiegley [Mon, 5 Apr 2010 05:06:27 +0000 (01:06 -0400)]
Added run-tests.sh

14 years agoUpdated TODO file
John Wiegley [Mon, 5 Apr 2010 05:05:59 +0000 (01:05 -0400)]
Updated TODO file

14 years agochar-valid-p is obsolete (as of Emacs 23.1); use characterp instead
Mario Lang [Sun, 27 Dec 2009 19:11:07 +0000 (20:11 +0100)]
char-valid-p is obsolete (as of Emacs 23.1); use characterp instead

15 years agoAdded a bug.
John Wiegley [Wed, 17 Sep 2008 12:55:03 +0000 (08:55 -0400)]
Added a bug.

15 years agoUse $(whoami), not $$, to distinguish emacs-chess tmp dirs.
John Wiegley [Wed, 17 Sep 2008 11:24:49 +0000 (07:24 -0400)]
Use $(whoami), not $$, to distinguish emacs-chess tmp dirs.

15 years agoAdd PID into the tmpdir.
Mario Lang [Wed, 17 Sep 2008 11:23:24 +0000 (13:23 +0200)]
Add PID into the tmpdir.

15 years agoruntests now takes an argument, specifying how many CPUs are available.
John Wiegley [Wed, 17 Sep 2008 11:03:35 +0000 (07:03 -0400)]
runtests now takes an argument, specifying how many CPUs are available.

15 years agoHave 'make check' fail if there are any Lisp errors.
John Wiegley [Wed, 17 Sep 2008 11:03:14 +0000 (07:03 -0400)]
Have 'make check' fail if there are any Lisp errors.

15 years agoAdded 'runtests', to simplify running on multi-core machines.
John Wiegley [Wed, 17 Sep 2008 11:02:55 +0000 (07:02 -0400)]
Added 'runtests', to simplify running on multi-core machines.

15 years agoFixed another problem with the error reporting code.
John Wiegley [Wed, 17 Sep 2008 10:18:47 +0000 (06:18 -0400)]
Fixed another problem with the error reporting code.

15 years agoAdded missing `error' argument.
John Wiegley [Wed, 17 Sep 2008 10:02:27 +0000 (06:02 -0400)]
Added missing `error' argument.

15 years agoSorted the TODO file.
John Wiegley [Wed, 17 Sep 2008 09:58:42 +0000 (05:58 -0400)]
Sorted the TODO file.

15 years agoAdd more delays in case text has not appeared from the command.
John Wiegley [Wed, 17 Sep 2008 09:50:07 +0000 (05:50 -0400)]
Add more delays in case text has not appeared from the command.

Fixes: AF51A38C-36B6-4976-954D-0BCD6C1A81FD
15 years agoAfter a call to `chess-scid-get-result', clear the buffer so that we don't see
John Wiegley [Tue, 16 Sep 2008 08:36:39 +0000 (04:36 -0400)]
After a call to `chess-scid-get-result', clear the buffer so that we don't see
the prompt that was output after that command when we enter this function the
second time.

15 years agoUpdated TODO file.
John Wiegley [Wed, 10 Sep 2008 22:28:05 +0000 (18:28 -0400)]
Updated TODO file.

15 years agoTODO item about unconditional disabling of assert.
Mario Lang [Wed, 10 Sep 2008 15:04:50 +0000 (17:04 +0200)]
TODO item about unconditional disabling of assert.

15 years agoAdded a TODO item about chess-scid-get-result failing on some machines.
Mario Lang [Mon, 8 Sep 2008 21:41:22 +0000 (23:41 +0200)]
Added a TODO item about chess-scid-get-result failing on some machines.

15 years agoAdded TODO note.
John Wiegley [Wed, 3 Sep 2008 08:18:46 +0000 (04:18 -0400)]
Added TODO note.

15 years agoAdded TODO entries.
John Wiegley [Wed, 3 Sep 2008 00:51:27 +0000 (20:51 -0400)]
Added TODO entries.

15 years agoAdded a code cleanup note.
John Wiegley [Tue, 2 Sep 2008 10:13:34 +0000 (06:13 -0400)]
Added a code cleanup note.

15 years agoAdded a few bugs to the TODO file.
John Wiegley [Tue, 2 Sep 2008 10:12:15 +0000 (06:12 -0400)]
Added a few bugs to the TODO file.

15 years agoRemoved code that was appending text to the ends of variables, rather than
John Wiegley [Tue, 2 Sep 2008 10:09:27 +0000 (06:09 -0400)]
Removed code that was appending text to the ends of variables, rather than
using format string specifiers.

15 years agoImplemented a safer method for parsing algebraic moves, since for some reason
John Wiegley [Tue, 2 Sep 2008 10:07:46 +0000 (06:07 -0400)]
Implemented a safer method for parsing algebraic moves, since for some reason
we weren't always seeing the full move when using looking-at.  The way I do it
now is to require some kind of whitespace after the SAN move text.

15 years agoUpdated TODO file.
John Wiegley [Tue, 2 Sep 2008 09:55:49 +0000 (05:55 -0400)]
Updated TODO file.

15 years agoIf a chess message cannot be found, let the user know which one.
John Wiegley [Tue, 2 Sep 2008 09:25:27 +0000 (05:25 -0400)]
If a chess message cannot be found, let the user know which one.

15 years agoDon't highlight the opening paren for special chess-* forms.
John Wiegley [Tue, 2 Sep 2008 09:21:33 +0000 (05:21 -0400)]
Don't highlight the opening paren for special chess-* forms.

15 years agoSimplified the test runner's output, so it fits in 80 columns.
John Wiegley [Tue, 2 Sep 2008 09:14:17 +0000 (05:14 -0400)]
Simplified the test runner's output, so it fits in 80 columns.