Skip to content
Conways game of life
Common Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
game-of-life.lisp

README.md

Dependencies

Install Common LISP. On OS X using homebrew:

$ brew install clisp

Run

Change to the folder and start the game by calling

$ clisp -i game-of-life.lisp

You can now use the following commands:

> (print-world) ; show the current status of the world
> (spawn-random-cell) ; spawn a random cell anywhere
> (spawn-cell-at 2 4) ; spawns a living cell at x: 2, y: 4
> (next-generation) ; proceed one generation (calls `print-world`)

Typical usage involves spawning some cells manually at desired locations and call next-generation a few times.

You can’t perform that action at this time.