The example shows naive (if-then-else) algorythm along with more idiomatic and modularized version.
Prerequisites: opam should be installed. Also, utop, merlin and Emacs (or other Merlin-compatible editor) are very useful.
- Clone the repo and cd to the top directory
opam pin add football . -n
opam install football -t --deps-only
- To play with utop:
jbuilder utop src/lib
- To test:
jbuilder runtest
Feel free to play.
MIT (see the file)