Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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

About

Game of Life in Clojure

Resources

License

Releases

No releases published
You can’t perform that action at this time.