In this workshop, we create a game which combines simple rules to create complexity. Modelled on life, this game's rules were inspired by birth, death and survival.
This repo contains:
- a starter-kit for programming the Game of Life.
- examples which you can mold to your ends.
git clone [email protected]:adcloud/clojure-intro-workshop.git
- Install leiningen.
- Somewhere under the project folder, run
lein deps
- You can start an interactive repl with
lein repl
- Open
src/clojure_intro_workshop/core.clj
. - Read the rules of Game of Life. (Or play by your own rules, if you prefer.)
We have included speclj. It's a TDD/BDD framework in Clojure.
You can run all test with lein spec
.
Run lein spec -a
for autotesting - will run every time a file is changed.
Find the tests in spec/clojure_intro_workshop/core_spec.clj
.
- This workshop's cheat sheets: basics, concurrency.
- Official Clojure cheat sheet.
Copyright © 2013 Waldemar Schwan, Tj Gabbour
Distributed under the Eclipse Public License, the same as Clojure.