Associated code for the blog post Functional vs Data-Driven development: a Case-Study in Clojure & OCaml.
The code in the Clojure section is mostly taken verbatim from chapter 5 the Brave Clojure book: https://www.braveclojure.com/functional-programming/
To build the OCaml program, you'll need OCaml 4.14+.
$ cd ./ocaml/
Install the deps
$ opam install containers iter
Build the project
$ dune build
Run the game
$ dune exec ./main.exe
To build the Clojure project, you'll need lein
on your system.
To build the OCaml program, you'll need OCaml 4.14+.
$ cd ./clojure/
Run the project
$ lein run