November 2010
Intermediate to advanced
504 pages
12h 45m
English
Now that we can see things in our world, let’s write some code so that we can walk around. The walk function (not in the functional style) takes a direction and lets us walk there:
(defun walk (direction)(let ((next (find direction
(cdr (assoc *location* *edges*))
:key #'cadr)))
(if next (progn (setf *location* (car next)) ...
Read now
Unlock full access