summaryrefslogtreecommitdiff
path: root/lisp/play
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-06-24 00:15:26 -0700
committerGlenn Morris <rgm@gnu.org>2014-06-24 00:15:26 -0700
commit131a3a12c4b0171c71c122c3330f85fc19e9bb8f (patch)
tree83776ccda3b3d170c956b33afc7293c02213153c /lisp/play
parent2fde356acb722a54aa0a4f18cbe2b56c216dbb1e (diff)
parentb950752961eb3d9207e4b4bd61a57071cdbe31eb (diff)
downloademacs-131a3a12c4b0171c71c122c3330f85fc19e9bb8f.tar.gz
Merge from emacs-24; up to 2014-06-08T18:27:22Z!eggert@cs.ucla.edu
Diffstat (limited to 'lisp/play')
-rw-r--r--lisp/play/landmark.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/play/landmark.el b/lisp/play/landmark.el
index 5c516e70f99..f1bd87ce847 100644
--- a/lisp/play/landmark.el
+++ b/lisp/play/landmark.el
@@ -4,13 +4,7 @@
;; Author: Terrence Brannon (was: <brannon@rana.usc.edu>)
;; Created: December 16, 1996 - first release to usenet
-;; Keywords: games, gomoku, neural network, adaptive search, chemotaxis
-
-;;;_* Usage
-;;; Just type
-;;; M-x eval-buffer
-;;; M-x landmark-test-run
-
+;; Keywords: games, neural network, adaptive search, chemotaxis
;; This file is part of GNU Emacs.
@@ -29,6 +23,9 @@
;;; Commentary:
+
+;; To try this, just type: M-x landmark-test-run
+
;; Landmark is a relatively non-participatory game in which a robot
;; attempts to maneuver towards a tree at the center of the window
;; based on unique olfactory cues from each of the 4 directions. If
@@ -1040,13 +1037,17 @@ mouse-1: get robot moving, mouse-2: play on this square")))
"Move point down one row on the Landmark board."
(interactive)
(if (< (landmark-point-y) landmark-board-height)
- (forward-line 1)));;; landmark-square-height)))
+ (let ((col (current-column)))
+ (forward-line 1) ;;; landmark-square-height
+ (move-to-column col))))
(defun landmark-move-up ()
"Move point up one row on the Landmark board."
(interactive)
(if (> (landmark-point-y) 1)
- (forward-line (- landmark-square-height))))
+ (let ((col (current-column)))
+ (forward-line (- landmark-square-height))
+ (move-to-column col))))
(defun landmark-move-ne ()
"Move point North East on the Landmark board."