Function: landmark-start-robot

landmark-start-robot is an interactive and byte-compiled function defined in landmark.el.gz.

Signature

(landmark-start-robot)

Documentation

Signal to the Landmark program that you have played.

You must have put the cursor on the square where you want to play. If the game is finished, this command requests for another game.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/landmark.el.gz
;;;_  - landmark-start-robot ()
(defun landmark-start-robot ()
  "Signal to the Landmark program that you have played.
You must have put the cursor on the square where you want to play.
If the game is finished, this command requests for another game."
  (interactive)
  (landmark-switch-to-window)
  (cond
   (landmark-emacs-is-computing
    (landmark-crash-game))
   ((not landmark-game-in-progress)
    (landmark-prompt-for-other-game))
   (t
    (let ((square (landmark-point-square)))
      (cond ((null square)
             (error "Your point is not on a square.  Retry!"))
	    ((not (zerop (aref landmark-board square)))
             (error "Your point is not on a free square.  Retry!"))
	    (t
	     (progn
	       (landmark-plot-square square 1)

	       (landmark-store-old-y_t)
	       (landmark-calc-current-smells)
	       (put 'z 't (landmark-calc-smell-internal 'landmark-tree))

	       (landmark-random-move)

	       (landmark-calc-payoff)

	       (mapc #'landmark-update-normal-weights landmark-directions)
	       (mapc #'landmark-update-naught-weights landmark-directions)
	       (landmark-amble-robot)
	       )))))))