Function: landmark-human-takes-back
landmark-human-takes-back is an interactive and byte-compiled function
defined in landmark.el.gz.
Signature
(landmark-human-takes-back)
Documentation
Signal to the Landmark program that you wish to take back your last move.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/landmark.el.gz
(defun landmark-human-takes-back ()
"Signal to the Landmark program that you wish to take back your last move."
(interactive)
(landmark-switch-to-window)
(cond
(landmark-emacs-is-computing
(landmark-crash-game))
((not landmark-game-in-progress)
(message "Too late for taking back...")
(sit-for 4)
(landmark-prompt-for-other-game))
((zerop landmark-number-of-human-moves)
(message "You have not played yet... Your move?"))
(t
(message "One moment, please...")
;; It is possible for the user to let Emacs play several consecutive
;; moves, so that the best way to know when to stop taking back moves is
;; to count the number of human moves:
(setq landmark-human-took-back t)
(let ((number landmark-number-of-human-moves))
(while (= number landmark-number-of-human-moves)
(landmark-take-back)))
(landmark-prompt-for-move))))