Skip to content

kolman/GoL-Clojure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published