Robots/Common Lisp: Difference between revisions
m
Fixed syntax highlighting and removed duplicate header.
(Add a robots implementation in Common LIsp) |
m (Fixed syntax highlighting and removed duplicate header.) |
||
Line 1:
==={{header|ncurses}}===
To interface the ncurses C terminal library from Lisp, the ''croatoan'' library is used.
<
(ql:quickload "croatoan")
(in-package :croatoan)
Line 47 ⟶ 46:
(bind scr #\t (lambda (w e) (setq pos (random-position scr)) (draw-board w)))
(draw-board scr)
(run-event-loop scr)))))</
|