Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple simulator for Conway's game of life written in clojure.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .lein-failures
Octocat-spinner-32 README.md
Octocat-spinner-32 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.