Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple simulator for Conway's game of life written in clojure.
Clojure
Branch: master
Pull request Compare This branch is 24 commits ahead of sebastianbenz:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test/engine/test
.gitignore
.lein-failures
README.md
project.clj

README.md

clojure-game-of-life

An implementation of Conway's game of live together with a Swing GUI. Both written in clojure.

Usage

with leiningen (https://github.com/technomancy/leiningen):

cd clojure-game-of-life 
lein repl

Starting the game

  1. from project folder:

    lein repl   
    
  2. from the repl:

    run.run=> (life gosper-glider-gun)
    

This comes with five example configurations pre-defined:

  • box
  • boat
  • blinker
  • glider
  • (and best of all) gosper-glider-gun

You can also manually specify the set of points life takes. For example,

run.run=> (life #{[3 1] [3 2] [3 3]}) 

makes a blinker.

Installation

git clone git@github.com:jayunit100/clojure-game-of-life.git

License

Original source code: Copyright (C) 2010 Sebastian Benz The source has since been updated by Colbert Sesanker, Matt Fenwick, and Jay Vyas.

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.