I just did the Cellular Automata kata in Clojure.
These are the tests using Midje:
and this is the resulting code:
where I added a function print-evolution to visualize the evolution on the REPL
As usual I used a mix of TDD and REPL-driven development committing after each green and each refactoring.
I also committed the REPL history.
See all the commits here if you want to follow the process.
You can find all the code on GitHub.
No comments:
Post a Comment