Game of Life in Clojure
Clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
resources
src/joyful_game
test/joyful_game
.gitignore
LICENSE
README.md
project.clj

README.md

Game of Life in Clojure

This is a tutorial that explains the implementation of the Game of Life in Clojure. It uses interactive Gorilla-REPL to visualise the key parts of the algorithm.

The original algorithm was published here: http://clj-me.cgrand.net/2011/08/19/conways-game-of-life/ This is just slightly polished version to make it more readable for beginners.

Usage

To play with interactive REPL, do the following:

  • Make sure you have installed Leiningen
  • Clone this repo, download dependencies and run the REPL:
git clone https://github.com/kolman/GoL-Clojure
cd GoL-Clojure
lein deps
lein gorilla :port 8999

If you want to add new code segment, press Ctrl-G-N. To evaluate one segment, press Shift-Enter. To see more shortcuts and actions, click on the tree-lines-icon in the top right corner of the page.

You can watch the original talk on youtube (in czech): http://youtu.be/hr8RnTfijx0

Screenshots

Data structure

Mapping frequencies

Glider