Very nice write-up. This is a nice contrib. Makes me think it is better
for newbies to learn from each other than from us dinosaurs.
kt
Very nice and "clean". I did not look carefullly at the code yet - it
take some times for a "yet another newbie" like me, but i appreciate
it.
GC
One slight nitpick - consider replacing (:add-use-defaults t) with
(:use :common-lisp) in the portable (non-CAPI) section -
:add-use-defaults seems to be a Lispworks-specific thing marring what
is otherwise perfectly portable code.
-bcd
--
*** Brian Downing <bdowning at lavos dot net>
> In article <5o8xtyy...@kuusi.ifi.uio.no>,
> Asbjørn Bjørnst ad <asb...@ifi.uio.no> wrote:
> > With little to do over the holiday period, I wrote up the process of
> > writing a trivial little game. And I do mean trivial.
> > If you got nothing better to do either, you can find it here:
> > http://www.jalat.com/the-game.html
>
> One slight nitpick - consider replacing (:add-use-defaults t) with
> (:use :common-lisp) in the portable (non-CAPI) section -
> :add-use-defaults seems to be a Lispworks-specific thing marring what
> is otherwise perfectly portable code.
Agreed, and done.
--
-asbjxrn
Asbjørn Bjørnstad wrote:
Another one:
Write
(defun print-grid (grid)
(format t "~{~{ ~a~}~%~}~%" (loop for i on grid by 'cdddr
collect (list (first i) (second
i) (third i)))))
instead of
(defun print-grid (grid)
(format t "~{~{ ~a~}~%~}~%" (loop for i on currentpos by 'cdddr
collect (list (first i) (second
i) (third i)))))
and perhaps (logxor p m) instead of (mod (+ p m) 2) in apply-move
Ciao, Fred
very cool, asbjxrn
Nick
> Another one:
> Write
>
[..]
A bug! And I thought I'd tested everything so thoroughly.
> and perhaps (logxor p m) instead of (mod (+ p m) 2) in apply-move
Maybe next time.
--
-asbjxrn
Thanks to all the nice feedback, I got encouraged to write another piece,
so if you want me to stop, you now know how. :-)
This time I didn't write a program, I just tried to give an impression
of how I (ab)use the REPL.
Warning: my way of using the REPL could seriously offend your sense of
estetics. Ugly code has a main part in this episode: