Function: landmark-play-move
landmark-play-move is a byte-compiled function defined in
landmark.el.gz.
Signature
(landmark-play-move SQUARE VAL &optional DONT-UPDATE-SCORE)
Documentation
Go to SQUARE, play VAL and update everything.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/landmark.el.gz
(defun landmark-play-move (square val &optional dont-update-score)
"Go to SQUARE, play VAL and update everything."
(setq landmark-emacs-is-computing t) ; Raise flag
(cond ((= 1 val) ; a Human move
(setq landmark-number-of-human-moves (1+ landmark-number-of-human-moves)))
((zerop landmark-number-of-moves) ; an Emacs move. Is it first ?
(setq landmark-emacs-played-first t)))
(setq landmark-game-history
(cons (cons square (aref landmark-score-table square))
landmark-game-history)
landmark-number-of-moves (1+ landmark-number-of-moves))
(landmark-plot-square square val)
(aset landmark-board square val) ; *BEFORE* UPDATE-SCORE !
(if dont-update-score nil
(landmark-update-score-table square val) ; previous val was 0: dval = val
(aset landmark-score-table square -1))
(setq landmark-emacs-is-computing nil))