summaryrefslogtreecommitdiff
path: root/src/test/hanoi.lisp
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-11 00:28:57 -0800
committerKeith Packard <keithp@keithp.com>2016-11-17 22:18:39 -0800
commit426f172d92cdef177150f990c4f52b0223a5f6f7 (patch)
tree6959056c88628b4a48b756fb518913759ccc9f54 /src/test/hanoi.lisp
parentf7a0de052dd3be1565da882b87cf3fbb6c9084d2 (diff)
altos/lisp: Share mark function for mark and move
These two operations both wanted to walk the referenced objects; sharing is caring. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/hanoi.lisp')
-rw-r--r--src/test/hanoi.lisp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/hanoi.lisp b/src/test/hanoi.lisp
index 93594c43..09a3611c 100644
--- a/src/test/hanoi.lisp
+++ b/src/test/hanoi.lisp
@@ -60,8 +60,8 @@
(defun display ()
(display-stacks 0 20 stacks)
- (move-to 1 1)
- (patom "\n")
+ (move-to 1 21)
+ (flush)
)
(defun length (l)
@@ -100,7 +100,7 @@
(setq stacks (replace stacks from from-stack))
(setq stacks (replace stacks to to-stack))
(display)
- (delay 500)
+ (delay 100)
)
)
@@ -125,3 +125,5 @@
(clear)
(_hanoi len 0 1 2)
)
+
+(hanoi)