+Don't ever use chess-pos-move directly, but instead create ply and
+call chess-ply-next-pos. This will make sure that castling moves are
+interpreted correctly.
+
+Pawn captures while playing gnuchess cause an error.
+
+Is the whole event model just a bit too fragile?
+----------------------------------------------------------------------
* 2.0
** Breakdown
(draw (intern-soft (concat name "-draw")))
(highlight (intern-soft (concat name "-highlight")))
(initialize (intern-soft (concat name "-initialize"))))
- (unless initialize
+ (unless draw
(error "There is no known chessboard display style '%s'" name))
(with-current-buffer (generate-new-buffer "*Chessboard*")
(setq cursor-type nil
chess-display-perspective perspective
chess-display-search-function search-func)
(chess-display-mode)
- (funcall initialize)
+ (if initialize
+ (funcall initialize))
(if session
(let ((game (chess-session-data session 'current-game)))
(if game