comparison lisp/play/landmark.el @ 34792:294c98d5718b

(lm): Use interactive spec `P'. (toplevel): Don't set debug-on-error.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 21 Dec 2000 16:13:06 +0000
parents e559f0aa6b2d
children 1e7b34ebbb0a
comparison
equal deleted inserted replaced
34791:88b250e19382 34792:294c98d5718b
1 ;;; landmark.el --- neural-network robot that learns landmarks 1 ;;; landmark.el --- neural-network robot that learns landmarks
2 2
3 ;; Copyright (c) 1996, 1997 Free Software Foundation, Inc. 3 ;; Copyright (c) 1996, 1997, 2000 Free Software Foundation, Inc.
4 4
5 ;; Author: Terrence Brannon <brannon@rana.usc.edu> 5 ;; Author: Terrence Brannon <brannon@rana.usc.edu>
6 ;; Created: December 16, 1996 - first release to usenet 6 ;; Created: December 16, 1996 - first release to usenet
7 ;; Keywords: gomoku neural network adaptive search chemotaxis 7 ;; Keywords: gomoku neural network adaptive search chemotaxis
8 8
52 ;;; move in a net direction can produce gross credit assignment. for 52 ;;; move in a net direction can produce gross credit assignment. for
53 ;;; example, if moving south will produce positive payoff, then, if in 53 ;;; example, if moving south will produce positive payoff, then, if in
54 ;;; a single move, one moves east,west and south, then both east and 54 ;;; a single move, one moves east,west and south, then both east and
55 ;;; west will be improved when they shouldn't 55 ;;; west will be improved when they shouldn't
56 56
57 ;;; For further references see
58 ;;; http://rana.usc.edu:8376/~brannon/warez/yours-truly/lm/
59 ;;; Many thanks to Yuri Pryadkin (yuri@rana.usc.edu) for this 57 ;;; Many thanks to Yuri Pryadkin (yuri@rana.usc.edu) for this
60 ;;; concise problem description. 58 ;;; concise problem description.
61 59
62 ;;;_* Require 60 ;;;_* Require
63 (eval-when-compile (require 'cl)) 61 (eval-when-compile (require 'cl))
1115 "The number of moves made by the robot so far.") 1113 "The number of moves made by the robot so far.")
1116 1114
1117 1115
1118 ;;;_* Terry's mods to create lm.el 1116 ;;;_* Terry's mods to create lm.el
1119 1117
1120 ;;;_ + Debugging things
1121 (setq debug-on-error t)
1122 ;;;(setq lm-debug nil) 1118 ;;;(setq lm-debug nil)
1123 (defvar lm-debug nil 1119 (defvar lm-debug nil
1124 "If non-nil, debugging is printed.") 1120 "If non-nil, debugging is printed.")
1125 (defcustom lm-one-moment-please nil 1121 (defcustom lm-one-moment-please nil
1126 "If non-nil, print \"One moment please\" when a new board is generated. 1122 "If non-nil, print \"One moment please\" when a new board is generated.
1653 4 | no | no 1649 4 | no | no
1654 1650
1655 You start by moving to a square and typing \\[lm-start-robot], 1651 You start by moving to a square and typing \\[lm-start-robot],
1656 if you did not use a prefix arg to ask for automatic start. 1652 if you did not use a prefix arg to ask for automatic start.
1657 Use \\[describe-mode] for more info." 1653 Use \\[describe-mode] for more info."
1658 (interactive "p") 1654 (interactive "P")
1659 1655
1660 (setf lm-n nil lm-m nil) 1656 (setf lm-n nil lm-m nil)
1661 (lm-switch-to-window) 1657 (lm-switch-to-window)
1662 (cond 1658 (cond
1663 (lm-emacs-is-computing 1659 (lm-emacs-is-computing