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|Common Lisp}}==
==={{header|ncurses}}===
To interface the ncurses C terminal library from Lisp, the ''croatoan'' library is used.
<langsyntaxhighlight lang="lisp">;; Load the library from the quicklisp repository
(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)))))</langsyntaxhighlight>
9,482

edits