(require 'chess-module)
(require 'chess-var)
(require 'chess-input)
+(require 'chess-random)
(defgroup chess-display nil
"Common code used by chess displays."
(make-variable-buffer-local 'chess-display-index)
(make-variable-buffer-local 'chess-display-move-text)
(make-variable-buffer-local 'chess-display-side-to-move)
+(put 'chess-display-side-to-move 'risky-local-variable t)
(make-variable-buffer-local 'chess-display-perspective)
(make-variable-buffer-local 'chess-display-event-handler)
(make-variable-buffer-local 'chess-display-edit-mode)
(chess-error 'game-is-over)))
(if (= chess-display-index (chess-game-index chess-module-game))
(let ((chess-display-handling-event t))
- (chess-display-paint-move nil ply)
(chess-game-move chess-module-game ply)
+ (chess-display-paint-move nil ply)
(chess-display-set-index* nil (chess-game-index chess-module-game)))
;; jww (2002-03-28): This should beget a variation within the
;; game, or alter the game, just as SCID allows
(funcall chess-display-event-handler 'draw-square
(point) (or piece last-command-char) index))))
+(unless (fboundp 'event-window)
+ (defalias 'event-point 'ignore))
+
(defun chess-display-mouse-set-piece (event)
"Select the piece the user clicked on."
(interactive "e")