Function: landmark-take-back
landmark-take-back is a byte-compiled function defined in
landmark.el.gz.
Signature
(landmark-take-back)
Documentation
Take back last move and update everything.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/landmark.el.gz
(defun landmark-take-back ()
"Take back last move and update everything."
(setq landmark-emacs-is-computing t)
(let* ((last-move (car landmark-game-history))
(square (car last-move))
(oldval (aref landmark-board square)))
(if (= 1 oldval)
(setq landmark-number-of-human-moves (1- landmark-number-of-human-moves)))
(setq landmark-game-history (cdr landmark-game-history)
landmark-number-of-moves (1- landmark-number-of-moves))
(landmark-plot-square square 0)
(aset landmark-board square 0) ; *BEFORE* UPDATE-SCORE !
(landmark-update-score-table square (- oldval))
(aset landmark-score-table square (cdr last-move)))
(setq landmark-emacs-is-computing nil))