Skip to content

Instantly share code, notes, and snippets.

View piyush0101's full-sized avatar

Piyush Srivastava piyush0101

  • DigitalOcean
  • Portland, OR
View GitHub Profile
@piyush0101
piyush0101 / life.lisp
Created October 21, 2012 16:39 — forked from rik0/life.lisp
Game of Life in Lisp
(proclaim '(optimize (speed 3) (space 0) (debug 0)))
(defparameter *width* 80)
(defparameter *height* 23)
(defparameter *length* (* *width* *height*))
(defun neighbours (pos)
(mapcar (lambda (x) (mod x *length*))
(delete pos
(mapcan (lambda (pos)