summaryrefslogtreecommitdiff
path: root/chess-ply.el
AgeCommit message (Collapse)Author
2018-09-06Pre-movesdickmao
To activate, look for Chess Display Allow Pre Moves in: M-x customize-group chess-display Tested via: make test make test24 (requires evim)
2018-08-30Add tests for castling legality and ics response handling.dickmao
Fixes misinterpretation of "e1-b1" as a valid queenside castle, and makes more sense of ics basic response handling #21. `make test` should run the historic.pgn test and the new ecukes tests.
2018-05-29avoid ask-promotion returning nildickmao
2017-01-22A little bit of code golfingJohn Wiegley
2017-01-22Ask user for promotion piece when applicableErik Peldan
2014-06-04Sync from ELPA.Mario Lang
2014-05-19Convert some file headers to the standard form including license.Mario Lang
2014-05-18Avoid repeatedly calling chess-pos-en-passant.Mario Lang
2014-04-28Replace a few chess-incr-index calls with chess-next-index.Mario Lang
2014-04-21chess-legal-plies: Simplify the :color case.Mario Lang
2014-04-21chess-pos-search*: New function.Mario Lang
Search for several pieces in one swipe of the board, returning an alist of pieces and their indices. Use this in chess-legal-plies for the common case where we want all legal plies for a certain color makes the testsuite time go down to 9m57s.
2014-04-18chess-legal-plies: It is illegal to castle if the king is in check right now.Mario Lang
2014-04-18chess-legal-plies: Stop generating duplicate castling moves.Mario Lang
2014-04-18chess-legal-plies: Generate R and B promotions in addtion to Q and N.Mario Lang
2014-04-09chess-legal-plies: If chess-ply-allow-interactive-query is nil, generate Q ↵Mario Lang
and N promotions.
2014-04-02Eliminate a few compiler warnings due to missing require or cl runtime use.Mario Lang
2008-09-01Simplified some error text.John Wiegley
2008-09-01Removed the unnecessary chess-incr-index* function.John Wiegley
2008-09-01Report a clearer error in the case of an algebraic queening move with anJohn Wiegley
unspecified promotion.
2008-09-01Except for when making moves interactively (with chess-display-manual-move),John Wiegley
it is an error if a ply implies a promotion but not :promote keyword is passed to indication which piece to promote to.
2004-03-01(chess-legal-plies): Add :candidates keyword to avoid calls to ↵Mario Lang
chess-search-position if the caller already knows the piece indices
2004-01-28(chess-ply-castling-changes): When doing a long castle, only check ifMario Lang
the king can move to the d or c file without being in check. According to the crafty-list, it is legal to do a long castle if some opponent piece is attacking the b file.
2004-01-27docfixMario Lang
2004-01-06some docstringsMario Lang
2004-01-04Set status of next-pos according to changes of plyMario Lang
2002-06-19*** no comment ***John Wiegley
2002-05-16miscellaneous fixesJohn Wiegley
2002-04-28*** no comment ***John Wiegley
2002-04-26bug fixesJohn Wiegley
2002-04-22Bug fixes and reducing the TODO list.John Wiegley
2002-04-19Fixes and other work.John Wiegley
2002-04-18Many efficiency improvements and bug fixes.John Wiegley
2002-04-17More general bug fixing, efficiency improvements, etc.John Wiegley
2002-04-17*** no comment ***John Wiegley
2002-04-16(chess-ply-set-keyword): Added a new function for setting a ply'sJohn Wiegley
keyword, with an optional value (must be non-nil for setting with a value to occur).
2002-04-16Removed the $ Revision strings; they are no longer necessary since IJohn Wiegley
tag every revision that I upload.
2002-04-16Major speed improvement and efficiency work. chess-legal-plies isJohn Wiegley
much more memory conservative now. Reduced recursion in chess-search-position by a slight bit.
2002-04-15*** no comment ***John Wiegley
2002-04-15*** no comment ***John Wiegley
2002-04-14*** no comment ***John Wiegley
2002-04-13added message catalog supportJohn Wiegley
2002-04-13added support for highlighting legal pliesJohn Wiegley
2002-04-13totally rewrote chess-legal-plies to be vastly more efficientJohn Wiegley
2002-04-13*** no comment ***John Wiegley
2002-04-12*** no comment ***John Wiegley
2002-04-12*** no comment ***John Wiegley
2002-04-12optimizations and bug fixesJohn Wiegley
2002-04-11*** no comment ***John Wiegley
2002-04-11*** no comment ***John Wiegley
2002-04-11*** no comment ***John Wiegley