An implementation of Conway's game of live together with a Swing GUI. Both written in clojure.
with leiningen (https://github.com/technomancy/leiningen):
cd clojure-game-of-life
lein repl
-
from project folder:
lein repl
-
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.
git clone git@github.com:jayunit100/clojure-game-of-life.git
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.